/* ========================================
   FILOSOFIA - VERSIONE PULITA E STABILE
   ======================================== */

:root {
  --primary: #556b2f;
  --secondary: #a64e2a;
  --tertiary: #d9c6a3;
  --bg-main: #f8f5f0;
  --text-main: #3a2e22;
  --text-elegant: #4a3a2a;
  --white: #ffffff;
  --radius-lg: 16px;
  --transition: 280ms ease;
}

html,
body {
  overflow-x: hidden;
}

.section-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ========================================
   HERO
   ======================================== */

.phil-hero {
  position: relative;
  min-height: clamp(680px, 88svh, 920px);
  padding: calc(var(--header-safe-offset, 92px) + 12px) clamp(16px, 2.4vw, 28px) clamp(44px, 6vh, 64px);
  display: flex;
  align-items: center;
  flex-direction: row;
  background: #17120e;
}

.phil-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.32);
}

.phil-hero::after {
  content: "\2193\A Scopri la nostra storia";
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  white-space: pre;
  text-align: center;
  z-index: 6;
  pointer-events: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.67rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  animation: philScrollCue 3.8s ease-in-out infinite;
}

.phil-hero-picture,
.phil-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phil-hero-img {
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.9) contrast(0.93) blur(2px);
  transform: scale(1);
  transform-origin: center;
  animation: philHeroKenBurns 25s ease-in-out infinite alternate;
}

.phil-hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  z-index: 2;
}

.phil-hero-overlay-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 42%, rgba(166, 78, 42, 0.16) 0%, rgba(166, 78, 42, 0) 62%);
  z-index: 3;
}

.phil-hero-content {
  position: relative;
  z-index: 4;
  width: min(940px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.phil-hero-text-wrapper {
  width: min(860px, 92%);
  max-width: 860px;
  height: fit-content;
  margin-inline: auto;
  padding: clamp(20px, 2.5vw, 32px) clamp(30px, 3.8vw, 46px);
  border-radius: 34px;
  background: rgba(30, 24, 20, 0.7);
  border: 1px solid rgba(214, 199, 165, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: philPanelIn 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  grid-template-areas:
    "kicker ."
    "title subnote"
    "description cta";
  column-gap: clamp(34px, 5vw, 76px);
  row-gap: 12px;
  align-items: start;
}

.phil-hero-kicker {
  grid-area: kicker;
  margin: 0 0 18px 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  animation: philFadeIn 1000ms ease both;
  animation-delay: 220ms;
}

.phil-hero-title {
  grid-area: title;
  margin: 0 0 24px 0;
  font-family: "Bodoni Moda", "Playfair Display", serif;
  font-size: clamp(1.52rem, 3.05vw, 2.68rem);
  line-height: 1.02;
  color: var(--white);
  transform: translateY(7px);
  animation: philFadeIn 1100ms ease both;
  animation-delay: 420ms;
  max-width: 18ch;
}

.phil-accent-word {
  color: var(--tertiary);
  font-weight: 600;
  display: inline-block;
}

.phil-accent-word br {
  display: block;
}

.phil-hero-description {
  grid-area: description;
  margin: 0 0 14px 0;
  max-width: 420px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(clamp(-220px, -16vw, -170px));
  animation: philFadeIn 1100ms ease both;
  animation-delay: 620ms;
}

.phil-hero-subnote {
  grid-area: subnote;
  margin: 10px 0 10px 0;
  max-width: 22ch;
  font-family: "Poppins", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  animation: philFadeIn 1000ms ease both;
  animation-delay: 760ms;
  text-align: left;
}

.phil-hero-subnote-photo {
  grid-area: subnote;
  margin: 10px 0 10px 0;
  width: min(100%, 340px);
  max-width: 100%;
  border-radius: 14px;
  display: block;
  justify-self: start;
  animation: philFadeIn 1000ms ease both;
  animation-delay: 760ms;
}

.phil-hero-cta {
  grid-area: cta;
  align-self: start;
  justify-self: stretch;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  animation: philFadeIn 1000ms ease both;
  animation-delay: 900ms;
  position: relative;
  width: 100%;
}

.phil-hero-cta::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(215, 198, 163, 0.72), rgba(215, 198, 163, 0));
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.phil-hero-cta .hero-btn {
  flex: none;
  width: 100%;
  min-height: 40px;
  white-space: normal;
  text-align: center;
  animation: philBtnFloat 3.6s ease-in-out infinite;
}

.phil-hero-cta .hero-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0) 100%);
}

.phil-hero-cta .hero-btn-primary::after {
  left: -55%;
  animation: philBtnShineRight 3.8s ease-in-out infinite;
}

.phil-hero-cta .hero-btn-secondary::after {
  right: -55%;
  animation: philBtnShineLeft 3.8s ease-in-out infinite;
}

.phil-hero-cta .hero-btn-secondary {
  animation-delay: 240ms;
}

.hero-btn-primary {
  background: #556b2f;
  color: var(--white);
  border: 1px solid #556b2f;
  box-shadow: 0 10px 22px rgba(85, 107, 47, 0.34);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  background: #4a5f29;
  border-color: #4a5f29;
  box-shadow: 0 14px 26px rgba(85, 107, 47, 0.32);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: #d7c6a3;
  border: 1px solid rgba(215, 198, 163, 0.82);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  background: #d7c6a3;
  border-color: #d7c6a3;
  color: #2f261d;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

@keyframes philBtnFloat {
  0% {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  }
  100% {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }
}

@keyframes philBtnShineRight {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 0.68;
  }
  36% {
    opacity: 0;
    transform: translateX(290%);
  }
  100% {
    opacity: 0;
    transform: translateX(290%);
  }
}

@keyframes philBtnShineLeft {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 0.68;
  }
  36% {
    opacity: 0;
    transform: translateX(-290%);
  }
  100% {
    opacity: 0;
    transform: translateX(-290%);
  }
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
  background: #ffffff;
}

@media (min-width: 981px) {
  .navbar .logo {
    margin-left: 8px;
  }
}

@keyframes philHeroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes philPanelIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes philScrollCue {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 0.72;
  }
}

@keyframes philFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes philFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CONTENUTI
   ======================================== */

.phil-intro {
  background: linear-gradient(180deg, #fcfaf6 0%, #f7f3ec 100%);
  padding: clamp(80px, 10vw, 140px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.intro-text h2 {
  margin: 0 0 28px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.15rem, 3.1vw, 2.9rem);
  line-height: 1.18;
  color: var(--primary);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.intro-text p {
  margin: 0 0 22px 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.01rem, 1.04vw, 1.12rem);
  line-height: 1.82;
  color: #2f261d;
  max-width: 64ch;
}

.intro-text p strong {
  color: #8b3f21;
  font-weight: 700;
}

.intro-strong {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 4px solid rgba(166, 78, 42, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.intro-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro-visit-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fefcf8;
  background: linear-gradient(135deg, #556b2f 0%, #6f8347 100%);
  border: 1px solid #4a5f29;
  box-shadow: 0 12px 28px rgba(85, 107, 47, 0.34);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-box-reflect: below 6px linear-gradient(transparent, rgba(255, 255, 255, 0.2));
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  animation: olivePulse 2.2s ease-in-out infinite;
}

.intro-visit-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.intro-visit-btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 42%;
  height: 320%;
  transform: rotate(22deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.68) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
  animation: oliveShine 3.4s ease-in-out infinite;
}

.intro-visit-btn > * {
  position: relative;
  z-index: 1;
}

.intro-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(85, 107, 47, 0.42);
  filter: saturate(1.1);
}

.intro-visit-btn:focus-visible {
  outline: 2px solid rgba(85, 107, 47, 0.45);
  outline-offset: 3px;
}

@keyframes olivePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(85, 107, 47, 0.34);
  }
  50% {
    transform: scale(1.065);
    box-shadow: 0 18px 40px rgba(85, 107, 47, 0.48);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(85, 107, 47, 0.34);
  }
}

@keyframes oliveShine {
  0% {
    left: -35%;
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  35% {
    left: 125%;
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.intro-highlight {
  border-left: 4px solid var(--secondary);
  border-radius: 20px;
  padding: clamp(34px, 4vw, 58px) clamp(24px, 3vw, 34px);
  background: linear-gradient(150deg, rgba(166, 78, 42, 0.12) 0%, rgba(217, 198, 163, 0.32) 55%, rgba(85, 107, 47, 0.12) 100%);
  box-shadow: 0 18px 36px rgba(58, 46, 34, 0.14);
  position: relative;
}

.intro-quote {
  margin: 0 0 22px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  font-style: italic;
  line-height: 1.45;
  color: #7f3a20;
}

.intro-quote::before {
  content: "\201C";
  display: block;
  font-family: "Bodoni Moda", "Playfair Display", serif;
  font-size: 3rem;
  line-height: 0.8;
  color: rgba(166, 78, 42, 0.35);
  margin-bottom: 10px;
}

.intro-quote p,
.intro-author {
  margin: 0;
}

.intro-author {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.cta-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--secondary);
}

.phil-values {
  background:
    radial-gradient(circle at 8% 18%, rgba(166, 78, 42, 0.16) 0%, rgba(166, 78, 42, 0) 34%),
    radial-gradient(circle at 92% 82%, rgba(85, 107, 47, 0.2) 0%, rgba(85, 107, 47, 0) 42%),
    linear-gradient(155deg, #f3ecdf 0%, #e6dcc9 48%, #d8ccb6 100%);
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-title {
  margin: 0 0 60px 0;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--primary);
}

.phil-values .section-title {
  margin: -8px 0 12px 0;
  text-align: left;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 3vw, 2.85rem);
}

.values-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.values-intro {
  align-self: center;
}

.values-kicker {
  margin: 0 0 12px 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(58, 46, 34, 0.72);
}

.values-lead {
  margin: 0;
  max-width: 34ch;
  text-align: left;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.96rem;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(58, 46, 34, 0.82);
}

.values-title-image {
  margin: 10px 0 16px 0;
  width: min(340px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(58, 46, 34, 0.16);
}

.values-title-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 70%;
}

.values-layout {
  display: grid;
  gap: 0;
}

.value-line {
  position: relative;
  padding: 20px 8px 20px 0;
  border-bottom: 1px solid rgba(58, 46, 34, 0.12);
  transition: transform var(--transition);
}

.value-line:last-child {
  border-bottom: none;
}

.value-line::before {
  content: attr(data-index);
  position: absolute;
  right: 18px;
  top: 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(85, 107, 47, 0.14);
  pointer-events: none;
}

.value-line:hover {
  transform: translateX(3px);
}

.value-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(85, 107, 47, 0.12);
  color: var(--primary);
}

.value-line h3 {
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1.35rem, 1.9vw, 1.62rem);
  line-height: 1.2;
  color: var(--primary);
}

.value-line h3 i {
  color: var(--secondary);
  font-size: 0.9em;
}

.value-line p {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #34281e;
  max-width: 58ch;
}

.phil-manifesto {
  background: #A64E2A;
  padding: clamp(100px, 12vw, 160px) 0;
}

.manifesto-content {
  text-align: center;
}

.manifesto-quote {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  line-height: 1.28;
  font-weight: 600;
  font-style: italic;
  color: #fffdf6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.manifesto-quote p {
  margin: 0 0 12px 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
}

.manifesto-quote p:last-child {
  margin-bottom: 0;
}

.phil-path {
  background: var(--white);
  padding: clamp(130px, 16vw, 220px) 0;
}

.path-timeline {
  --path-progress: 0%;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 70px;
}

.path-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 83px;
  height: 1px;
  background: rgba(85, 107, 47, 0.25);
}

.path-progress {
  position: absolute;
  left: 0;
  top: 82px;
  height: 2px;
  width: var(--path-progress);
  background: linear-gradient(90deg, rgba(85, 107, 47, 0.7) 0%, rgba(166, 78, 42, 0.58) 100%);
  transition: width 220ms ease-out;
}

.path-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 54px);
}

.path-item {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.path-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.path-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  box-shadow: 0 4px 10px rgba(58, 46, 34, 0.12);
  display: block;
  margin: 0 auto 26px auto;
  transform: scale(0.72);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.path-item.is-visible .path-dot {
  transform: scale(1);
  opacity: 1;
  animation: pathPulse 2.6s ease-in-out infinite;
}

.path-year {
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.05rem, 2.6vw, 2.45rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.12;
}

.path-text {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-elegant);
  max-width: 28ch;
  margin-inline: auto;
}

@keyframes pathPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 107, 47, 0.18), 0 4px 10px rgba(58, 46, 34, 0.12);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(85, 107, 47, 0), 0 4px 10px rgba(58, 46, 34, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 107, 47, 0), 0 4px 10px rgba(58, 46, 34, 0.12);
  }
}

.phil-gallery {
  background: linear-gradient(135deg, rgba(85, 107, 47, 0.03) 0%, rgba(217, 198, 163, 0.05) 100%);
  padding: clamp(80px, 10vw, 140px) 0;
  overflow-x: hidden;
}

.gallery-marquee {
  --gallery-gap: 18px;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.gallery-track {
  display: flex;
  align-items: stretch;
  gap: var(--gallery-gap);
  width: max-content;
  animation: galleryFlow 48s linear infinite;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-slide {
  margin: 0;
  width: clamp(230px, 25vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(58, 46, 34, 0.14);
  border: 1px solid rgba(58, 46, 34, 0.08);
  background: #efe8dc;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms ease;
}

.gallery-slide:hover img {
  transform: scale(1.03);
}

@keyframes galleryFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gallery-cta {
  margin-top: 30px;
  text-align: center;
}

.phil-cta {
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 221, 189, 0.22) 0%, rgba(234, 221, 189, 0) 36%),
    radial-gradient(circle at 88% 82%, rgba(180, 123, 74, 0.2) 0%, rgba(180, 123, 74, 0) 40%),
    linear-gradient(140deg, #3f4f26 0%, #556b2f 46%, #8a4a2f 100%);
  padding: clamp(100px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.phil-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%);
}

.phil-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -35deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 10px
  );
  opacity: 0.16;
}

.phil-cta .section-inner {
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
}

.cta-content h2 {
  margin: 0 0 18px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.2;
  color: var(--white);
}

.cta-content p {
  margin: 0 0 34px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 36px;
  border-radius: var(--radius-lg);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--white);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--tertiary);
  color: var(--white);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.cta-buttons .btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--tertiary);
  border-color: var(--tertiary);
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .intro-highlight {
    max-width: 720px;
  }

  .path-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .navbar {
    height: 64px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(248, 245, 240, 0.96);
    border: 1px solid rgba(58, 46, 34, 0.12);
    box-shadow: 0 14px 28px rgba(58, 46, 34, 0.14);
    backdrop-filter: blur(10px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
    .phil-path {
      padding: clamp(96px, 14vw, 130px) 0;
    }

    .intro-side {
      align-items: center;
    }

    .intro-visit-btn {
      min-height: 46px;
      padding: 12px 22px;
      font-size: 0.78rem;
      margin-left: auto;
      margin-right: auto;
      align-self: center;
    }

    .path-timeline {
      padding-top: 54px;
    }

    .path-timeline::before {
      top: 64px;
    }

    .path-progress {
      top: 63px;
    }

    .path-track {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .path-item {
      padding-top: 4px;
    }

    .path-dot {
      margin-bottom: 14px;
    }

    .path-year {
      font-size: 1.8rem;
    }

    .path-text {
      font-size: 0.95rem;
    }

  .phil-hero {
    min-height: clamp(560px, 82svh, 680px);
    padding: calc(var(--header-safe-offset, 88px) + 10px) 16px 34px;
  }

  .phil-hero::after {
    bottom: 14px;
    font-size: 0.62rem;
  }

  .phil-hero-text-wrapper {
    width: min(860px, 94%);
    padding: 20px 22px;
    border-radius: 30px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "description"
      "subnote"
      "cta";
    row-gap: 8px;
  }

  .phil-hero-title {
    font-size: clamp(1.36rem, 5.4vw, 2rem);
    margin-bottom: 18px;
    max-width: 100%;
    transform: translateY(5px);
  }

  .phil-hero-description {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.74;
    max-width: 100%;
    transform: translateY(-4px);
  }

  .phil-hero-subnote {
    margin: 0 0 8px 0;
    max-width: 100%;
  }

  .phil-hero-subnote-photo {
    margin: 0 0 8px 0;
    width: min(100%, 320px);
    max-width: 100%;
  }

  .phil-hero-cta {
    justify-self: start;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .phil-hero-cta .hero-btn {
    width: 100%;
  }

  .hero-btn {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .gallery-marquee {
    --gallery-gap: 12px;
  }

  .gallery-slide {
    width: clamp(210px, 68vw, 280px);
  }

  .values-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .values-intro {
    position: static;
  }

  .phil-values .section-title,
  .values-lead,
  .values-title-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .values-layout {
    gap: 0;
  }

  .value-line {
    padding: 18px 0;
  }

  .value-line::before {
    font-size: 2.2rem;
    right: 14px;
  }

  .value-line h3 {
    font-size: 1.26rem;
  }

  .value-line p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .manifesto-quote {
    font-size: clamp(1.9rem, 6vw, 2.35rem);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .phil-hero {
    min-height: clamp(520px, 78svh, 620px);
    padding: calc(var(--header-safe-offset, 84px) + 8px) 12px 24px;
  }

  .phil-hero-text-wrapper {
    max-width: 100%;
    width: min(860px, 100%);
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(30, 24, 20, 0.7);
    row-gap: 6px;
  }

  .phil-hero-title {
    font-size: clamp(1.24rem, 7vw, 1.75rem);
    margin-bottom: 14px;
    transform: translateY(4px);
  }

  .phil-hero-kicker {
    font-size: 0.54rem;
    letter-spacing: 3px;
  }

  .phil-hero-description {
    margin-top: 0;
    font-size: 17px;
    line-height: 1.7;
    transform: translateY(-2px);
  }

  .phil-hero-subnote {
    font-size: 0.63rem;
    margin-bottom: 10px;
  }

  .phil-hero-subnote-photo {
    margin-bottom: 10px;
    width: min(100%, 270px);
    max-width: 100%;
  }

  .phil-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-btn {
    width: 100%;
    white-space: normal;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 40px;
  }

  .intro-highlight {
    padding: 26px 20px;
  }

  .intro-text p {
    font-size: 1rem;
    line-height: 1.76;
  }

  .intro-quote {
    font-size: 1.3rem;
  }

  .values-lead {
    margin-bottom: 24px;
    font-size: 0.92rem;
    max-width: 36ch;
  }

  .value-line {
    padding: 16px 0;
  }

  .value-icon-chip {
    width: 28px;
    height: 28px;
  }

  .value-line h3 {
    font-size: 1.18rem;
    gap: 10px;
  }

  .value-line::before {
    font-size: 1.9rem;
    top: 16px;
  }

  .path-item {
    padding-left: 0;
  }
}
