/* =========================================================================
   Minerva - Casa Agrifoglio
   Design system: avorio caldo + verde salvia + rosso brand
   ========================================================================= */

:root {
  /* Palette */
  --ivory:        #ffffff;
  --ivory-deep:   #f4f4f3;
  --paper:        #ffffff;
  --ink:          #211d18;
  --ink-soft:     #4a443b;
  --ink-faint:    #8a8275;
  --line:         #e4ddcd;

  --sage:         #6f7a5a;
  --sage-deep:    #515a41;
  --sage-soft:    #aab299;
  --sage-light:   #9ab88a;

  --green-bright: #23ac4c;
  --green-bright-deep: #1e9241;

  --brand:        #cf3a2e;   /* rosso Minerva, leggermente raffinato */
  --brand-deep:   #aa2a20;

  /* Tipografia */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Misure */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 18px rgba(33, 29, 24, 0.06);
  --shadow-md: 0 18px 50px rgba(33, 29, 24, 0.10);
  --shadow-lg: 0 30px 80px rgba(33, 29, 24, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.075rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--brand);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-top: 1rem;
  max-width: 18ch;
}
.section-lead {
  margin-top: 1.4rem;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Allineamenti di sezione */
.align-center { text-align: center; }
.align-center .eyebrow { justify-content: center; }
.align-center .section-title,
.align-center .section-lead,
.align-center .contact-form-title { margin-inline: auto; }

.align-right { text-align: right; }
.align-right .eyebrow { justify-content: flex-end; }
.align-right .eyebrow::before { order: 2; }
.align-right .section-title,
.align-right .section-lead { margin-left: auto; }

/* Casa Agrifoglio: etichette di sezione pulite, senza trattino decorativo. */
.page-casa-agrifoglio .eyebrow {
  gap: 0;
}
.page-casa-agrifoglio .eyebrow::before {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn i { transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn--solid { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn--white:hover { background: rgba(255,255,255,0.88); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 244, 236, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.nav-logo-img { height: 38px; width: auto; transition: height 0.5s var(--ease); }
.nav.is-scrolled .nav-logo-img { height: 30px; }

/* hero state: logo bianco non disponibile -> aggiungiamo un filtro per leggibilità su video scuro */
.nav:not(.is-scrolled) .nav-logo-img { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45)); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
.nav:not(.is-scrolled) .nav-link { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.nav:not(.is-scrolled) .hamburger span { background: #fff; }
.hamburger:hover span:nth-child(1) { transform: translateY(-1px); }
.hamburger:hover span:nth-child(3) { transform: translateY(1px); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter) 3rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-logo { height: 34px; }
.mobile-menu-close { font-size: 1.5rem; color: var(--ink); width: 44px; height: 44px; }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: auto;
}
.mobile-menu-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--ink);
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.mobile-menu-link:hover { color: var(--brand); padding-left: 0.8rem; }
.mobile-menu-foot { color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.05em; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,17,13,0.78) 0%, rgba(20,17,13,0.25) 45%, rgba(20,17,13,0.35) 100%);
}
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
}
.hero-eyebrow {
  color: #fff;
  opacity: 0.9;
  justify-content: center;
}
.hero-eyebrow::before { background: #fff; }
.hero-subtitle {
  margin-inline: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  opacity: 0.92;
}
.hero-title {
  color: #fff;
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: clamp(2.8rem, 6vw, 3.6rem);
}

.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll i { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================================
   Intro / mission strip
   ========================================================================= */
.intro {
  position: relative;
  background: var(--ivory);
  padding-bottom: clamp(5rem, 12vw, 8rem);
}
.intro-center {
  position: relative;
  z-index: 1;
  text-align: center;
}
.intro-center .eyebrow {
  justify-content: center;
}
.intro-headline {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 1.2rem auto 0;
  max-width: 16ch;
  color: var(--brand);
}
.intro-columns {
  max-width: 56ch;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.intro-columns p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.intro-thread {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: clamp(1.5rem, 5vw, 3rem);
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.28;
}
/* =========================================================================
   Scopri (cards)
   ========================================================================= */
.scopri { background: var(--ivory-deep); }
.scopri .container {
  max-width: min(1520px, calc(100vw - 2.5rem));
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}
.scopri-head { display: block; }
.scopri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.4vw, 1.4rem);
  margin-top: 3rem;
}
.scopri-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 2rem;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.scopri-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.9s var(--ease);
}
.scopri-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20,17,13,0.55) 0%, rgba(20,17,13,0.15) 55%, rgba(20,17,13,0.35) 100%),
    linear-gradient(to top, rgba(20,17,13,0.9) 0%, rgba(20,17,13,0.2) 55%, rgba(20,17,13,0.25) 100%);
}
.scopri-card:hover::before { transform: scale(1.13); }
.scopri-card--casa::before      { background-image: url("../assets/sfondo.jpg"); }
.scopri-card--chi-siamo::before { background-image: url("../assets/gallery/IMG_2884.jpg"); }
.scopri-card--servizi::before   { background-image: url("../assets/gallery/IMG_2878.jpg"); }
.page-casa-agrifoglio .scopri-card--news {
  background: var(--ink);
}
.page-casa-agrifoglio .scopri-card--news::before {
  display: none;
}
.page-casa-agrifoglio .scopri-card--news::after {
  background: linear-gradient(145deg, rgba(58, 106, 152, 0.55), rgba(20, 17, 13, 0.18));
}
.scopri-card-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  max-width: 12ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.scopri-card-desc {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 4.5rem;
  z-index: 1;
  color: rgba(255,255,255,0.88);
  font-size: 0.96rem;
  max-width: none;
  text-align: center;
}
.scopri-card-link {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}
.scopri-card-link i { transition: transform 0.4s var(--ease); }
.scopri-card:hover .scopri-card-link i { transform: translateX(5px); }

/* Descrizione visibile solo in hover (solo su dispositivi con puntatore).
   Su touch (hover: none) la descrizione resta sempre visibile. */
@media (hover: hover) {
  .scopri-card-desc {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(10px);
    overflow: hidden;
    transition: opacity 0.5s var(--ease),
                transform 0.5s var(--ease),
                max-height 0.55s var(--ease),
                margin-top 0.55s var(--ease);
  }
  .scopri-card:hover .scopri-card-desc,
  .scopri-card:focus-within .scopri-card-desc {
    max-height: 14rem;
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scopri-card-desc { transition: none; }
}

/* Layout responsive delle 4 card */
@media (max-width: 1100px) {
  .scopri-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Cosa facciamo (video band)
   ========================================================================= */
.dofacciamo {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.dofacciamo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dofacciamo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(20,17,13,0.82) 0%, rgba(20,17,13,0.45) 60%, rgba(20,17,13,0.2) 100%);
}
.dofacciamo-inner { max-width: 720px; }
.dofacciamo .eyebrow, .dofacciamo .eyebrow::before { color: #fff; background-color: transparent; }
.dofacciamo .eyebrow::before { background: #fff; }
.dofacciamo-title { color: #fff; font-size: clamp(2.4rem, 7vw, 3.6rem); margin-top: 1rem; }
.dofacciamo-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.6vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  margin-top: 1.4rem;
  color: rgba(255,255,255,0.95);
}

/* =========================================================================
   News
   ========================================================================= */
.news { background: var(--ivory-deep); }
.news-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.8rem;
  margin-top: 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.6rem;
}
.news-grid > .news-card {
  flex: 0 0 clamp(280px, 30vw, 340px);
  width: clamp(280px, 30vw, 340px);
  max-width: none;
  scroll-snap-align: start;
}
.news-grid::after {
  content: "";
  flex: 0 0 0.25rem;
}
.news-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin-inline: auto;
  overflow: visible;
  scroll-snap-type: none;
  touch-action: auto;
  padding-bottom: 0;
}
.news-grid--2 > .news-card {
  flex: none;
  width: auto;
  max-width: none;
  scroll-snap-align: none;
}
.news-grid--2::after {
  display: none;
}
.page-services .news-grid--2 {
  max-width: 1140px;
}
.page-services .news-card-media {
  aspect-ratio: 4 / 3;
}
a.news-card {
  text-decoration: none;
  color: inherit;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(33, 29, 24, 0.07);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(33, 29, 24, 0.11); }
.news-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.07); }
.news-card-body { padding: 1.7rem 1.6rem 2rem; }
.news-tag {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600;
}
.news-card-title { font-size: 1.4rem; margin: 0.6rem 0 0.7rem; }
.news-card-desc { color: var(--ink-soft); font-size: 0.95rem; }

/* Servizi cards — hero title on image */
.news-card--hero-title .news-card-media { position: relative; }
.news-card--hero-title .news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(20,17,13,0.8) 0%, rgba(20,17,13,0.3) 45%, rgba(20,17,13,0.45) 100%);
  pointer-events: none;
}
.news-card--hero-title .news-card-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.news-card--hero-title .news-card-hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}
.news-card--hero-title .news-card-hero-title--large {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.05;
}
.news-card--hero-title .news-card-media--sad img { object-position: center 38%; }
.news-card--hero-title .news-card-body { padding-top: 1.5rem; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta {
  position: relative;
  background: var(--brand);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,17,13,0.42) 0%, rgba(20,17,13,0.42) 100%);
}
.cta .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; }
.cta-text { color: rgba(255,255,255,0.85); margin-top: 1.2rem; max-width: 50ch; }
.cta-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; justify-content: center; }

/* =========================================================================
   Map + Contact
   ========================================================================= */
.contact { background: var(--ivory-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-grid > div:first-child {
  padding-right: clamp(2rem, 5vw, 4rem);
}
.contact-form-panel {
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid var(--line);
}

/* ---- Layout mappa + recapiti (home) ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-split .map-wrapper {
  margin-bottom: 0;
  height: 100%;
  min-height: clamp(320px, 45vh, 460px);
}
.contact-details { align-self: center; }

/* ---- Mappa: cornice sottile, desaturata che torna a colori in hover ---- */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: clamp(300px, 42vh, 440px);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.map-wrapper iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.35) contrast(0.95);
  transition: filter 0.7s var(--ease);
}
.map-wrapper:hover iframe { filter: none; }
.map-pill {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--paper);
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.map-pill { cursor: pointer; }
.map-pill i { color: var(--brand); font-size: 0.7rem; transition: color 0.4s var(--ease); }
.map-pill:hover,
.map-wrapper:hover .map-pill { background: var(--ink); color: #fff; }
.map-pill:hover i,
.map-wrapper:hover .map-pill i { color: #fff; }

/* ---- Recapiti: elenco editoriale con linee sottili ---- */
.contact-form-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0.4rem 0 1.4rem;
}
.contact-info-list {
  list-style: none;
  margin: 0;
  border-top: 1px solid var(--line);
}
.contact-info-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.contact-info-value {
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
  transition: color 0.3s var(--ease);
}
a.contact-info-value:hover { color: var(--brand); }

/* ---- Form: input minimal con underline sottile ---- */
.contact-form { display: grid; gap: clamp(1.4rem, 2.6vw, 1.9rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 2.6vw, 1.9rem); }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0;
  transition: border-color 0.3s var(--ease);
}
.form-group textarea { resize: vertical; min-height: 3.5rem; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--sage);
}
.contact-form .btn--solid { justify-self: start; margin-top: 0.4rem; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-feedback {
  display: none;
  margin-top: 0.2rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--sage-deep);
  font-size: 0.9rem;
}
.form-feedback.is-visible { display: block; }

/* ---- Link "Apri in Google Maps" sotto i recapiti ---- */
.contact-maps-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  margin-inline: auto;
  margin-top: 1.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--green-bright);
  border-radius: 999px;
  background: var(--green-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact-maps-link i { color: #fff; transition: color 0.4s var(--ease); }
.contact-maps-link:hover {
  border-color: var(--green-bright-deep);
  background: var(--green-bright-deep);
  color: #fff;
  transform: translateY(-2px);
}
.contact-maps-link:hover i { color: #fff; }

/* ---- Pagina contatti: essenziale, diretta, senza elementi accessori ---- */
.page-contact-minimal {
  background: var(--ivory-deep);
}
.contact-minimal {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(8.5rem, 15vh, 11rem) 0 clamp(5rem, 10vh, 8rem);
  background:
    radial-gradient(circle at 12% 22%, rgba(207, 58, 46, 0.055), transparent 30rem),
    var(--ivory-deep);
}
.contact-minimal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.72fr);
  gap: clamp(4rem, 10vw, 9rem);
  align-items: center;
}
.contact-minimal-intro .eyebrow {
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.contact-minimal-intro h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.contact-minimal-lead {
  max-width: 43ch;
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.contact-direct {
  max-width: 33rem;
  margin-top: clamp(2.5rem, 5vw, 4.2rem);
  border-top: 1px solid var(--line);
}
.contact-direct-link {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}
.contact-direct-link span {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-direct-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 1.35vw, 1.02rem);
  font-weight: 500;
}
.contact-direct-link i {
  color: var(--brand);
  font-size: 0.8rem;
  transition: transform 0.35s var(--ease);
}
.contact-direct-link:hover,
.contact-direct-link:focus-visible {
  color: var(--brand);
}
.contact-direct-link:hover i,
.contact-direct-link:focus-visible i {
  transform: translateX(5px);
}
.contact-minimal-form-wrap {
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(33, 29, 24, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(33, 29, 24, 0.07);
  backdrop-filter: blur(10px);
}
.page-contact-minimal .contact-minimal-form-wrap.reveal.is-in {
  transform-origin: center;
  transition:
    transform 0.6s var(--ease),
    border-color 0.45s var(--ease),
    background-color 0.45s var(--ease),
    box-shadow 0.6s var(--ease);
}
.page-contact-minimal .contact-minimal-form-wrap.reveal.is-in:hover {
  transform: translateX(-0.3rem) scale(1.012);
  box-shadow: 0 34px 80px rgba(33, 29, 24, 0.09);
}
.page-contact-minimal .contact-minimal-form-wrap.reveal.is-in:focus-within {
  transform: translateX(-0.75rem) scale(1.028);
  border-color: rgba(207, 58, 46, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 42px 95px rgba(33, 29, 24, 0.13);
}
.contact-form-kicker {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.contact-form--minimal {
  gap: clamp(1.35rem, 2.5vw, 1.8rem);
}
.contact-form--minimal .form-group {
  gap: 0.35rem;
}
.contact-form--minimal .form-group label {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
}
.contact-form--minimal .form-group input,
.contact-form--minimal .form-group textarea {
  padding: 0.8rem 0;
  border-bottom-color: rgba(33, 29, 24, 0.18);
  font-size: 1rem;
}
.contact-form--minimal .form-group textarea {
  min-height: 11.5rem;
  transition:
    min-height 0.55s var(--ease),
    border-color 0.3s var(--ease);
}
.contact-form--minimal .form-group textarea:focus {
  min-height: 15rem;
}
.contact-compose-fields {
  border-top: 1px solid rgba(33, 29, 24, 0.14);
}
.contact-form--minimal .contact-compose-field {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 3.8rem;
  border-bottom: 1px solid rgba(33, 29, 24, 0.14);
  transition: border-color 0.3s var(--ease);
}
.contact-form--minimal .contact-compose-field:focus-within {
  border-bottom-color: rgba(207, 58, 46, 0.65);
}
.contact-form--minimal .contact-compose-field label {
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.contact-form--minimal .contact-compose-field input {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
}
.contact-form--minimal .contact-compose-field input:focus {
  border: 0;
}
.contact-form--minimal .contact-compose-message {
  gap: 0.65rem;
}
.contact-form--minimal .contact-compose-message label {
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.contact-form--minimal .contact-compose-message textarea {
  width: 100%;
  min-height: 13rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(33, 29, 24, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(33, 29, 24, 0.025);
  transition:
    min-height 0.55s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.contact-form--minimal .contact-compose-message textarea:focus {
  min-height: 16rem;
  border-color: rgba(207, 58, 46, 0.52);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 58, 46, 0.07);
}
.contact-form--minimal .btn {
  justify-content: space-between;
  width: 100%;
  margin-top: 0.15rem;
}
.contact-form--minimal .form-note {
  margin-top: -1.2rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
}
.contact-form--minimal .form-feedback {
  margin-top: -1rem;
  padding-top: 0.75rem;
}

@media (max-width: 900px) {
  .contact-minimal {
    min-height: auto;
    align-items: flex-start;
  }
  .contact-minimal-grid {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 9vw, 5rem);
  }
  .contact-minimal-intro h1 {
    max-width: 10ch;
  }
  .contact-minimal-form-wrap {
    width: min(100%, 38rem);
  }
  .page-contact-minimal .contact-minimal-form-wrap.reveal.is-in:hover,
  .page-contact-minimal .contact-minimal-form-wrap.reveal.is-in:focus-within {
    transform: none;
  }
}

@media (max-width: 560px) {
  .contact-minimal {
    padding-top: 7.2rem;
  }
  .contact-minimal-intro h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }
  .contact-direct-link {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
  }
  .contact-direct-link span {
    grid-column: 1 / -1;
  }
  .contact-direct-link i {
    grid-column: 2;
    grid-row: 2;
  }
  .contact-minimal-form-wrap {
    padding: 1.7rem 1.35rem;
  }
  .contact-form--minimal .form-group textarea,
  .contact-form--minimal .form-group textarea:focus {
    min-height: 12rem;
  }
  .contact-form--minimal .contact-compose-field {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact-minimal .contact-minimal-form-wrap.reveal.is-in,
  .contact-form--minimal .form-group textarea {
    transition: none;
  }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo-img { height: 40px; width: auto; }
.footer-carta-servizi-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-carta-servizi-link:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #fff;
}
.footer-carta-servizi {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.footer-carta-servizi-thumb {
  display: block;
  height: auto;
  width: auto;
  max-height: 148px;
  max-width: 168px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  object-position: top;
}
.footer-carta-servizi-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
}
.footer--portal .footer-carta-servizi {
  margin-bottom: 0.5rem;
}
.footer--portal .footer-carta-servizi-thumb {
  max-height: 160px;
  max-width: 180px;
}
.footer-desc { margin-top: 1.2rem; max-width: 38ch; font-size: 0.95rem; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-links li + li { margin-top: 0.7rem; }
.footer-links a { transition: color 0.3s var(--ease); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.footer-contact p + p { margin-top: 0.7rem; }
.footer-contact i { color: var(--brand); width: 18px; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* =========================================================================
   Inner pages
   ========================================================================= */
.page-hero {
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--ivory-deep);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-top: 1rem; }
.page-subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--ink-soft); margin-top: 0.6rem; }
.page-intro { max-width: 60ch; margin: 1.6rem auto 0; color: var(--ink-soft); }
.page-title--section { margin-top: 0; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section--no-hero { padding-top: clamp(7rem, 14vh, 10rem); }

/* Hero immersivo (casa, chi-siamo) - stessa cifra della home */
.page-hero--media {
  position: relative;
  min-height: clamp(58vh, 72svh, 760px);
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero--media::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.page-hero--media::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.8) 0%, rgba(20,17,13,0.3) 45%, rgba(20,17,13,0.45) 100%);
}
.page-hero-inner { position: relative; z-index: 1; width: 100%; }
.page-hero--media .hero-scroll { z-index: 1; }
.page-hero--media .eyebrow { color: #fff; opacity: 0.92; }
.page-hero--media .eyebrow::before { background: #fff; }
.page-hero--media .page-title { color: #fff; }
.page-hero--media .page-intro { color: rgba(255,255,255,0.9); }

.page-hero--casa::before      { background-image: url("../assets/sfondo.jpg"); }
.page-hero--chi-siamo::before { background-image: url("../assets/gallery/IMG_2884.jpg"); }
.page-hero--assistenza-domiciliare {
  min-height: clamp(72vh, 88svh, 920px);
}
.page-hero--assistenza-domiciliare::before { background-image: url("../assets/assistenza-domiciliare-hero.png"); background-position: center 38%; }
.page-hero--assistenza-domiciliare .page-title--hero-large {
  font-family: var(--serif);
  font-size: clamp(4rem, 10.5vw, 7.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 0;
  line-height: 1.05;
}
.page-hero--assistenza-domiciliare .hero-scroll,
.page-hero--assistenza-domiciliare .hero-scroll i,
.page-hero--assistenza-domiciliare .hero-scroll span {
  color: #fff;
}
.page-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.btn--sad-hero {
  background: #fff;
  color: #284870;
  border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
}
.btn--sad-hero:hover {
  background: #e8eef5;
  color: #1a3555;
  border-color: #e8eef5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.section--intro {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}
.section--intro .container {
  max-width: 72rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}
.section--intro .sad-tagline {
  font-family: var(--serif);
  font-size: var(--sad-display-size, clamp(3rem, 5.5vw, 4.75rem));
  font-weight: 500;
  line-height: 1.15;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.section--intro .page-intro--lead {
  max-width: min(85ch, 100%);
  margin: 1.6rem auto 0;
  text-align: center;
  font-size: clamp(1.5rem, 3.1vw, 1.875rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 768px) {
  body.page-sad .section--intro .sad-tagline {
    font-size: clamp(2.15rem, 8.5vw, 2.75rem);
  }
  body.page-sad .section--intro .page-intro--lead {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    line-height: 1.65;
  }
}
.section--intro .sad-highlight {
  color: var(--sad-blue, #284870);
  font-family: var(--serif);
  font-weight: 500;
}
.page-intro--lead {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}
.page-intro--lead + .page-intro--lead { margin-top: 1.2rem; }

/* =========================================================================
   Assistenza domiciliare (page-sad) — blue theme scoped
   ========================================================================= */
body.page-sad {
  --sad-display-size: clamp(3rem, 5.5vw, 4.75rem);
  --brand: #284870;
  --brand-deep: #1a3555;
  --sad-blue: #284870;
  --sad-blue-deep: #1a3555;
  --sad-blue-light: #3a6a98;
  --sad-blue-pale: #e8eef5;
}

/* Section spacing — breathing room between blocks */
body.page-sad .page-hero {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
body.page-sad .section {
  padding-block: clamp(5.5rem, 11vw, 10rem);
}
body.page-sad .section--intro {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
body.page-sad .sad-map-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
body.page-sad .section-title {
  margin-top: 1.25rem;
}
body.page-sad .section-lead {
  margin-top: 1.75rem;
}
body.page-sad .section:has(.tile-grid--scattered) .tile-grid--scattered {
  margin-top: clamp(3.25rem, 6.5vw, 4.5rem);
}

/* Adaptive logo: white on hero, blue on light sections */
body.page-sad .nav-logo-img,
body.page-sad .footer-logo-img,
body.page-sad .mobile-menu-logo {
  transition: filter 0.45s var(--ease), height 0.5s var(--ease);
}
body.page-sad .nav--logo-light .nav-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
body.page-sad .nav:not(.nav--logo-light) .nav-logo-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(85%) saturate(1200%) hue-rotate(195deg) brightness(0.85) contrast(1.1);
}
body.page-sad .footer-logo-img {
  filter: brightness(0) invert(1);
}
body.page-sad .footer-carta-servizi-thumb {
  filter: none;
}
body.page-sad .mobile-menu-logo {
  filter: brightness(0) saturate(100%) invert(18%) sepia(85%) saturate(1200%) hue-rotate(195deg) brightness(0.85) contrast(1.1);
}

body.page-sad .cta {
  background: var(--sad-blue-deep);
}
body.page-sad .footer-contact i {
  color: var(--sad-blue-light);
}

/* Mosaic tile icons (Cosa offriamo) */
body.page-sad .tile-icon--img {
  font-size: 0;
  margin-bottom: 1.2rem;
  background: none;
}
body.page-sad .tile-icon--img img {
  display: block;
  height: clamp(48px, 5vw, 56px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Cosa offriamo — scattered wave layout (assistenza domiciliare) */
body.page-sad .section:has(.tile-grid--scattered) .container {
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}
body.page-sad .tile-grid--scattered {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: min(1140px, 100%);
  margin-inline: auto;
  align-items: start;
}
body.page-sad .tile-grid--scattered .tile {
  background: transparent;
  border: none;
  padding: 1rem 0.35rem;
  text-align: center;
}
body.page-sad .tile-grid--scattered .tile-icon--img {
  margin-bottom: 1.1rem;
}
body.page-sad .tile-grid--scattered .tile-icon--img img {
  height: clamp(72px, 8vw, 88px);
  width: auto;
}
body.page-sad .tile-grid--scattered .tile h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.35;
}
body.page-sad .tile-grid--scattered .tile:nth-child(1) {
  transform: translate(-22px, -16px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(2) {
  transform: translate(10px, 38px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(3) {
  transform: translate(20px, -26px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(4) {
  transform: translate(-14px, 32px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(5) {
  transform: translate(16px, -12px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(6) {
  transform: translate(24px, 22px);
}
body.page-sad .tile-grid--scattered .tile:hover {
  border-color: transparent;
}
body.page-sad .tile-grid--scattered .tile:nth-child(1):hover {
  transform: translate(-22px, -22px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(2):hover {
  transform: translate(10px, 32px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(3):hover {
  transform: translate(20px, -32px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(4):hover {
  transform: translate(-14px, 26px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(5):hover {
  transform: translate(16px, -18px);
}
body.page-sad .tile-grid--scattered .tile:nth-child(6):hover {
  transform: translate(24px, 16px);
}
@media (max-width: 720px) {
  body.page-sad .section:has(.tile-grid--scattered) .container {
    padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  }
  body.page-sad .tile-grid--scattered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    max-width: 100%;
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(1) {
    transform: translate(-12px, -10px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(2) {
    transform: translate(8px, 22px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(3) {
    transform: translate(-10px, 16px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(4) {
    transform: translate(12px, -12px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(5) {
    transform: translate(-8px, 20px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(6) {
    transform: translate(10px, -8px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(1):hover {
    transform: translate(-12px, -16px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(2):hover {
    transform: translate(8px, 16px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(3):hover {
    transform: translate(-10px, 10px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(4):hover {
    transform: translate(12px, -18px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(5):hover {
    transform: translate(-8px, 14px);
  }
  body.page-sad .tile-grid--scattered .tile:nth-child(6):hover {
    transform: translate(10px, -14px);
  }
  body.page-sad .tile-grid--scattered .tile-icon--img img {
    height: clamp(56px, 14vw, 68px);
  }
  body.page-sad .tile-grid--scattered .tile h3 {
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  }
}

/* Assistenza domiciliare page */
.sad-blocks .sad-block + .sad-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.sad-block p {
  color: var(--ink-soft);
  margin-top: 1.2rem;
  max-width: 68ch;
}

/* Come funziona — highlighted title */
body.page-sad .section:has(.sad-timeline) .container {
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}
body.page-sad .section:has(.sad-timeline) .section-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}
body.page-sad .section-title--highlight {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: var(--sad-display-size);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

/* Come funziona — timeline */
body.page-sad .sad-timeline {
  list-style: none;
  counter-reset: sad-timeline;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(3.25rem, 6.5vw, 4.5rem);
  padding: 0;
  position: relative;
}
body.page-sad .sad-timeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
body.page-sad .sad-timeline__step {
  counter-increment: sad-timeline;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
}
body.page-sad .sad-timeline__node {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
body.page-sad .sad-timeline__node::before {
  content: counter(sad-timeline);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sad-blue);
  line-height: 1;
  transition: color 0.35s var(--ease);
}
body.page-sad .sad-timeline__card {
  margin-top: 1.5rem;
  width: 100%;
}
body.page-sad .sad-timeline__card--comune {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
}
body.page-sad .sad-timeline__shape-wrap {
  position: relative;
  width: 100%;
  min-height: clamp(9.5rem, 18vw, 12.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.page-sad .sad-timeline__card--comune.is-fallback .sad-timeline__shape-wrap {
  padding: 1.5rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
body.page-sad .sad-timeline__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.page-sad .sad-timeline__shape-fill {
  fill: var(--paper);
  stroke: #284870;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: fill 0.35s var(--ease);
}
body.page-sad .sad-timeline__card--comune.is-ready:hover .sad-timeline__shape-fill,
body.page-sad .sad-timeline__card--comune.is-ready.is-expanded .sad-timeline__shape-fill {
  fill: var(--ivory-deep);
}
body.page-sad .sad-timeline__card-title {
  position: relative;
  z-index: 1;
  padding: 12% 20%;
  max-width: 92%;
  text-align: center;
}
body.page-sad .sad-timeline__card-title strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0;
}
body.page-sad .sad-timeline__card-detail {
  width: 100%;
  max-width: 88%;
  text-align: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.45s var(--ease),
    opacity 0.35s var(--ease),
    margin-top 0.35s var(--ease);
}
body.page-sad .sad-timeline__card-detail span {
  display: block;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 1.5vw, 0.78rem);
  line-height: 1.35;
  padding: 0 clamp(1rem, 2vw, 1.35rem);
}
@media (min-width: 769px) {
  body.page-sad .sad-timeline__step:has(.sad-timeline__card--comune:hover) .sad-timeline__node {
    background: var(--sad-blue);
    border-color: var(--sad-blue);
  }
  body.page-sad .sad-timeline__step:has(.sad-timeline__card--comune:hover) .sad-timeline__node::before {
    color: #fff;
  }
  body.page-sad .sad-timeline__card--comune:hover .sad-timeline__card-detail {
    max-height: 10rem;
    opacity: 1;
    margin-top: 0.5rem;
  }
  body.page-sad .sad-timeline__card--comune.is-fallback:hover .sad-timeline__shape-wrap {
    background: var(--ivory-deep);
  }
}
body.page-sad .sad-timeline__card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
}
body.page-sad .sad-timeline__card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  body.page-sad .sad-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 3.25rem;
  }
  body.page-sad .sad-timeline::before {
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  body.page-sad .sad-timeline__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }
  body.page-sad .sad-timeline__step:last-child {
    padding-bottom: 0;
  }
  body.page-sad .sad-timeline__node {
    position: absolute;
    left: -3.25rem;
    top: 0;
  }
  body.page-sad .sad-timeline__card {
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }
  body.page-sad .sad-timeline__shape-wrap {
    min-height: clamp(8rem, 28vw, 10rem);
  }
  body.page-sad .sad-timeline__card--comune {
    cursor: default;
  }
  body.page-sad .sad-timeline__card--comune.is-expanded .sad-timeline__card-detail {
    max-height: 10rem;
    opacity: 1;
    margin-top: 0.5rem;
    transition:
      max-height 0.5s var(--ease),
      opacity 0.4s var(--ease),
      margin-top 0.4s var(--ease);
  }
  body.page-sad .sad-timeline__card--comune.is-fallback.is-expanded .sad-timeline__shape-wrap {
    background: var(--ivory-deep);
  }
  body.page-sad .sad-timeline__card-title {
    max-width: 92%;
    padding: 14% 22%;
    text-align: left;
  }
  body.page-sad .sad-timeline__card-title strong {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  }
  body.page-sad .sad-timeline__card-detail {
    max-width: 92%;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-sad .sad-timeline__card-detail,
  body.page-sad .sad-timeline__shape-fill,
  body.page-sad .sad-timeline__node,
  body.page-sad .sad-timeline__node::before {
    transition: none !important;
  }
}
.faq-list {
  max-width: 680px;
  margin-inline: auto;
  margin-top: 2.5rem;
}
.faq-item {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  margin-top: -0.1rem;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}
.faq-item p {
  padding: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 92%;
}
body.page-sad .faq-item[open] summary {
  color: var(--sad-blue-deep);
}
body.page-sad .faq-item summary::after {
  border-color: var(--sad-blue);
}
body.page-sad .faq-list {
  margin-top: clamp(3rem, 6vw, 4rem);
}

/* SAD area map — Puglia + Brindisi (SVG) */
.sad-map-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}
.sad-map-section .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.sad-map-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: clamp(360px, 42vw, 480px);
  isolation: isolate;
  overflow: hidden;
}
.sad-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.sad-map svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sad-map-text {
  position: absolute;
  top: auto;
  bottom: clamp(0.2rem, 0.6vw, 0.4rem);
  left: clamp(0.75rem, 2vw, 1.25rem);
  right: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(0.35rem, 0.8vw, 0.6rem);
  margin: 0;
  padding: 0;
  text-align: left;
  pointer-events: none;
}
.sad-map-text .eyebrow {
  flex-shrink: 0;
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  white-space: nowrap;
}
.sad-map-text .section-title {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.sad-map__region {
  fill: #e4e4e4;
  stroke: #c8c8c8;
  stroke-width: 0.35;
  stroke-linejoin: round;
}
.sad-map__province {
  fill: #a8c4de;
  fill-opacity: 0.55;
  stroke: #284870;
  stroke-width: 0.5;
  stroke-linejoin: round;
}
.sad-map__label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: #284870;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3px;
}
.sad-map__label--focus {
  font-weight: 700;
  font-size: 19px;
}
.sad-map__label--subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: #3d5a80;
  stroke-width: 2.5px;
}
.sad-map__hq-link {
  cursor: pointer;
}
.sad-map__hq-link:hover .sad-map__label--subtitle,
.sad-map__hq-link:focus-visible .sad-map__label--subtitle {
  fill: #1a3555;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.sad-map__marker {
  fill: #284870;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.sad-map[data-map-error="true"]::after {
  content: "Mappa non disponibile";
  display: block;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.sad-map-inset {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 1rem);
  right: clamp(2rem, 5vw, 3.5rem);
  z-index: 3;
  width: clamp(80px, 12vw, 120px);
  pointer-events: none;
  line-height: 0;
}
.sad-map-inset svg {
  display: block;
  width: 100%;
  height: auto;
}
.sad-map-inset__country {
  fill: #e4e4e4;
  stroke: #c8c8c8;
  stroke-width: 0.35;
  stroke-linejoin: round;
}
.sad-map-inset__region {
  fill: #a8c4de;
  fill-opacity: 0.85;
  stroke: #284870;
  stroke-width: 0.45;
  stroke-linejoin: round;
}
.sad-map-inset[data-map-error="true"] {
  display: none;
}
@media (max-width: 640px) {
  .sad-map-wrap {
    width: 100%;
    height: clamp(290px, 56vw, 360px);
  }
  .sad-map-inset {
    top: clamp(0.35rem, 1.2vw, 0.65rem);
    right: clamp(0.65rem, 2.5vw, 1rem);
    width: clamp(64px, 18vw, 88px);
    z-index: 4;
  }
  .sad-map-text {
    bottom: clamp(0.1rem, 1.2vw, 0.25rem);
    max-width: calc(100% - clamp(72px, 20vw, 96px));
  }
  .sad-map-text .eyebrow {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
  }
  .sad-map-text .section-title {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
    white-space: normal;
  }
  .sad-map__label {
    font-size: 14px;
  }
  .sad-map__label--focus {
    font-size: 16px;
  }
  .sad-map__label--subtitle {
    font-size: 12px;
  }
}

/* Feature / team / service cards (generic grid) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2.4rem 2rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--ink); }
.tile-icon {
  display: inline-flex;
  color: var(--brand);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: transform 0.5s var(--ease);
}
.tile:hover .tile-icon { transform: translateY(-2px); }
.tile h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.tile p { color: var(--ink-soft); font-size: 0.96rem; }
.tile--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s ease;
}
.tile--link:hover .tile-link { gap: 0.65rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* Split feature (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: 0; box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-body p { color: var(--ink-soft); margin-top: 1.2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,12,9,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.8rem; color: #fff; font-size: 1.8rem; }

/* =========================================================================
   Floating contact button
   ========================================================================= */
.floating-contact {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 300;
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), visibility 0.4s;
}
.floating-contact.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.floating-contact span { display: none; }
.floating-contact i { font-size: 1.15rem; flex-shrink: 0; }
.floating-contact--expand {
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), visibility 0.4s,
              width 0.4s var(--ease), padding 0.4s var(--ease);
}
.floating-contact--expand span {
  display: block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease);
}
.floating-contact--expand:hover,
.floating-contact--expand:focus-visible {
  width: auto;
  max-width: min(92vw, 22rem);
  padding: 0 1.35rem 0 1rem;
  gap: 0.7rem;
  justify-content: flex-start;
}
.floating-contact--expand:hover span,
.floating-contact--expand:focus-visible span {
  max-width: 16rem;
  opacity: 1;
}
.floating-contact:hover {
  background: var(--ink-soft);
  color: var(--paper);
  border-color: var(--ink-soft);
  transform: none;
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: reduce) {
  .floating-contact { transition: opacity 0.3s, visibility 0.3s; }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .nav-menu .nav-link:not(.hamburger) { display: none; }
  .intro-columns { max-width: 52ch; }
  .scopri-card-desc { display: none; }
  .scopri-card {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .scopri-card::before,
  .scopri-card::after {
    display: none;
  }
  .scopri-card-title {
    color: var(--ink);
    text-shadow: none;
  }
  .scopri-card-link {
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    font-size: 0;
  }
  .scopri-card-link::before {
    content: "Scopri";
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
  }
  .scopri-card-link i {
    font-size: 0.72rem;
    color: var(--brand);
  }
  .news-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0.35rem;
  }
  .news-grid--2 {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    overflow: visible;
    scroll-snap-type: none;
    gap: 1.6rem;
  }
  .news-grid--2 .news-card {
    flex: none;
    width: 100%;
  }
  .news-grid::after {
    content: "";
    flex: 0 0 0.25rem;
  }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-card {
    flex: 0 0 clamp(220px, 74vw, 280px);
    scroll-snap-align: start;
    box-shadow: 0 6px 22px rgba(33, 29, 24, 0.09);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-split .map-wrapper { min-height: clamp(280px, 50vw, 360px); }
  .contact-grid > div:first-child {
    padding-right: 0;
    padding-bottom: clamp(2rem, 6vw, 2.8rem);
    border-bottom: 1px solid var(--line);
  }
  .contact-form-panel {
    padding-left: 0;
    border-left: none;
    padding-top: clamp(2rem, 6vw, 2.8rem);
  }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-carta-servizi-thumb {
    max-height: 128px;
    max-width: 148px;
  }
  .footer--portal .footer-carta-servizi-thumb {
    max-height: 136px;
    max-width: 156px;
  }
  .gallery-item--wide, .gallery-item--tall { grid-column: auto; grid-row: auto; }
}
@media (min-width: 901px) {
  .hamburger { display: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .scopri-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .scopri-card {
    aspect-ratio: 1 / 1;
    padding: 1.25rem 0.75rem;
  }
  .scopri-card-title {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
    max-width: none;
  }
  .news-grid { gap: 0.85rem; }
  .news-card {
    flex: 0 0 clamp(180px, 62vw, 220px);
    box-shadow: 0 5px 18px rgba(33, 29, 24, 0.1);
  }
  .news-card:hover { transform: none; }
  .news-card-media { aspect-ratio: 4 / 3; }
  .news-card-body { padding: 1rem 0.9rem 1.15rem; }
  .news-tag { font-size: 0.62rem; letter-spacing: 0.14em; }
  .news-card-title { font-size: 1.05rem; margin: 0.4rem 0 0.45rem; }
  .news-card-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-card--hero-title .news-card-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .news-card--hero-title .news-card-hero-title--large { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .news-card--hero-title .news-card-media-overlay { padding: 1rem; }
  .news-card--hero-title .news-card-body { padding-top: 1rem; }
}

/* ---------- Cookie banner (minimal) ---------- */
.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 1200;
  width: min(360px, calc(100vw - 2rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.cookie-banner.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-inner { padding: 1.35rem 1.4rem 1.25rem; }
.cookie-banner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.cookie-banner-title {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0;
}
.cookie-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cookie-dismiss:hover { color: var(--ink-soft); }
.cookie-banner-text {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-prefs { margin-top: 0.9rem; display: grid; gap: 0; }
.cookie-prefs[hidden] { display: none; }
.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}
.cookie-pref-label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.cookie-pref-label small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.05rem;
}

/* Toggle switch */
.cookie-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 23px;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 100px;
  transition: background 0.25s var(--ease);
}
.cookie-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33, 29, 24, 0.25);
  transition: transform 0.25s var(--ease);
}
.cookie-switch input:checked + .cookie-switch-track { background: var(--sage); }
.cookie-switch input:checked + .cookie-switch-track::after { transform: translateX(17px); }
.cookie-switch--locked .cookie-switch-track { background: var(--sage-soft); }
.cookie-switch--locked input { cursor: default; }

.cookie-banner-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.cookie-btn {
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.cookie-btn--text {
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-btn--text:hover { color: var(--ink-soft); }
.cookie-btn--solid {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 100px;
  background: var(--sage);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cookie-btn--solid:hover { background: var(--sage-deep); }

.cookie-prefs-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}
.cookie-prefs-link:hover { opacity: 1; }

@media (max-width: 768px) {
  .cookie-banner {
    left: clamp(0.65rem, 3vw, 1rem);
    right: clamp(0.65rem, 3vw, 1rem);
    bottom: calc(clamp(0.65rem, 3vw, 1rem) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    border-radius: 16px;
  }
  .cookie-banner-inner {
    padding: 1.35rem 1.25rem 1.25rem;
  }
}

/* =========================================================================
   Portal home (Minerva hub)
   ========================================================================= */
.page-portal {
  background: #fff;
  overflow-x: clip;
  max-width: 100%;
}

.page-portal .nav--portal {
  color: var(--ink);
}
.page-portal .nav--portal:not(.is-scrolled) .nav-link { color: var(--ink-soft); }
.page-portal .nav--portal:not(.is-scrolled) .hamburger span { background: var(--ink); }
.page-portal .nav--portal:not(.is-scrolled) .nav-logo-img {
  filter: none;
}
.page-portal .nav--portal.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
}

/* Intro a schermo fisso: dissolvenze fino alla galleria */
@property --portal-t {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.portal-intro {
  position: relative;
  background: #fff;
}
.page-portal.is-portal-intro {
  overflow-x: clip;
}
html:has(body.is-portal-intro-locked),
.page-portal.is-portal-intro-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
/* Pending / sequenza: un pannello a schermo (non in modalita' stack) */
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro {
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
/* Overlay fisso: evita che la hero sticky riappaia durante il lock */
.page-portal.is-portal-intro-locked .portal-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  background: #fff;
}
.portal-intro-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985) translate3d(0, 1.25rem, 0);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease),
    visibility 0.85s var(--ease),
    transform 0.95s var(--ease),
    filter 0.85s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transform: scale(1) translate3d(0, 0, 0);
  filter: blur(0);
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro-panel.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.015) translate3d(0, -0.75rem, 0);
  filter: blur(4px);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease,
    transform 0.7s var(--ease),
    filter 0.65s ease;
}

/* Contenuti interni: entrano con ritardo rispetto al pannello */
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services-heading {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition:
    opacity 0.9s var(--ease) 0.18s,
    transform 1s var(--ease) 0.18s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro-panel.is-active .portal-services-heading,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services-heading.is-in {
  opacity: 1;
  transform: none;
}

/* Servizi: riparte l'animazione a ogni scena */
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row:not(.is-in) .portal-service-media,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row:not(.is-in) .portal-service-overlay,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row:not(.is-in) .portal-service-cta,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row:not(.is-in) .portal-service-desc,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row:not(.is-in) .portal-service-type {
  transition-delay: 0s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row.is-in .portal-service-media {
  transition-delay: 0.12s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row.is-in .portal-service-overlay {
  transition-delay: 0.28s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row.is-in .portal-service-cta {
  transition-delay: 0.4s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row.is-in .portal-service-desc {
  transition-delay: 0.22s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row.is-in .portal-service-type {
  transition-delay: 0.32s;
}

.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services {
  position: absolute;
  inset: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services-list {
  position: absolute;
  inset: 0;
  padding: 0;
  gap: 0;
  margin: 0;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services-intro {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 10vw, 8rem);
  background: var(--ivory-deep);
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row {
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 8vw, 6rem);
  background: var(--ivory-deep);
  overflow: hidden;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row + .portal-service-row::before {
  display: none;
}
.portal-intro > .portal-scroll {
  display: none;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro > .portal-scroll {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  z-index: 5;
  color: var(--ink-faint);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s var(--ease) 0.45s,
    transform 0.7s var(--ease) 0.45s,
    visibility 0.7s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-intro.is-cue-ready > .portal-scroll {
  opacity: 0.85;
  visibility: visible;
  pointer-events: auto;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity.portal-intro-panel {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  background: #fff;
  overflow: hidden;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity-title {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition:
    opacity 0.9s var(--ease) 0.12s,
    transform 1s var(--ease) 0.12s;
  white-space: normal;
  max-width: 100%;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity.portal-intro-panel.is-active .portal-gravity-title,
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity-title.is-in {
  opacity: 1;
  transform: none;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity-gallery {
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition:
    opacity 0.85s var(--ease) 0.28s,
    transform 0.95s var(--ease) 0.28s;
}
.page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-gravity.portal-intro-panel.is-active .portal-gravity-gallery {
  opacity: 1;
  transform: none;
}

/* In salita / dopo la sequenza: layout normale uno sotto l'altro */
.page-portal.is-portal-intro-flow .portal-intro {
  height: auto;
  max-height: none;
  overflow: visible;
  isolation: auto;
}
.page-portal.is-portal-intro-flow .portal-intro-panel {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  height: auto;
  margin: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  filter: none;
  display: block;
  overflow: visible;
  background: transparent;
  transition: none;
}
.page-portal.is-portal-intro-flow .portal-services {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
  background: var(--ivory-deep);
  padding: 0;
  margin: 0;
}
.page-portal.is-portal-intro-flow .portal-services-list {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(3rem, 7vw, 6rem);
  padding: 0 clamp(4rem, 12vw, 10rem) clamp(5rem, 12vw, 9rem);
  margin: 0;
}
.page-portal.is-portal-intro-flow .portal-services-intro {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(4rem, 12vw, 10rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ivory-deep);
}
.page-portal.is-portal-intro-flow .portal-services-heading,
.page-portal.is-portal-intro-flow .portal-gravity-title,
.page-portal.is-portal-intro-flow .portal-gravity-gallery {
  opacity: 1;
  transform: none;
}
.page-portal.is-portal-intro-flow .portal-service-row {
  position: relative;
  padding-block: clamp(0.75rem, 2vw, 1.5rem);
  padding-inline: 0;
  background: transparent;
  overflow: visible;
}
.page-portal.is-portal-intro-flow .portal-service-row + .portal-service-row::before {
  display: block;
}
.page-portal.is-portal-intro-flow .portal-gravity.portal-intro-panel {
  display: block;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  background: #fff;
  overflow: hidden;
}
.page-portal.is-portal-intro-flow .portal-intro > .portal-scroll {
  display: none !important;
}
.page-portal.is-portal-intro .portal-cinquepermille {
  scroll-margin-top: 0;
}

/* Hero sticky: logo sopra, titolo sotto (sempre in colonna) */
.portal-hero {
  --portal-t: 0;
  position: relative;
  height: 130vh;
  background: #fff;
}
.portal-hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: clamp(6.5rem, 14vh, 9rem);
  overflow: visible;
  background: #fff;
}
.portal-hero-stage {
  --portal-logo-size: min(58vw, 32rem);
  width: 100%;
  margin-inline: 0;
  padding-inline: var(--gutter);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.portal-hero-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  text-align: center;
}
.portal-logo-wrap {
  width: var(--portal-logo-size);
  flex: 0 0 auto;
  line-height: 0;
  z-index: 1;
  margin-inline: auto;
  margin-bottom: calc(var(--portal-t) * -0.625rem);
  transform: scale(calc(1 - var(--portal-t) * 0.08));
  transform-origin: center top;
  will-change: transform;
}
.portal-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  background: transparent;
  /* Compensa il peso visivo del disegno (leggermente spostato a sinistra nel PNG). */
  transform: translateX(4.1%);
}
.portal-hero-copy {
  position: absolute;
  top: calc(
    var(--portal-logo-size) * (1 - var(--portal-t) * 0.08)
    - 0.25rem
    + var(--portal-t) * -0.875rem
  );
  left: 0;
  right: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: calc(var(--portal-t) * var(--portal-t));
  transform: translate3d(0, calc((1 - var(--portal-t)) * 0.0625rem), 0);
  will-change: transform, opacity;
}
.portal-hero-title,
.portal-services-heading {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}
.portal-hero-title {
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.portal-mission {
  background: #fff;
  padding:
    clamp(1.25rem, 3vw, 2.25rem)
    clamp(2rem, 10vw, 8rem)
    clamp(6rem, 14vw, 10rem);
  display: flex;
  justify-content: center;
  align-items: center;
}
.portal-hero-text {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.portal-scroll {
  color: var(--ink-faint);
  opacity: calc(0.35 + (1 - var(--portal-t)) * 0.65);
  transition: opacity 0.3s var(--ease);
}
.portal-scroll i { color: var(--sage-deep); }

.portal-services {
  background: var(--ivory-deep);
}
.portal-services-intro {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(4rem, 12vw, 10rem) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}
.portal-services-heading {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.portal-services-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(3rem, 7vw, 6rem);
  padding: 0 clamp(4rem, 12vw, 10rem) clamp(5rem, 12vw, 9rem);
}
.portal-service-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 0;
  padding-block: clamp(0.75rem, 2vw, 1.5rem);
  overflow: visible;
}
.portal-service-row + .portal-service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(111, 122, 90, 0.16);
  pointer-events: none;
}
.portal-service-row:nth-child(odd) {
  justify-content: flex-start;
}
.portal-service-row:nth-child(even) {
  justify-content: flex-end;
}
.portal-service-type {
  position: absolute;
  z-index: 0;
  top: 50%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 28vw, 22rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.88;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(20, 17, 13, 0.045);
  -webkit-text-stroke: 1px rgba(20, 17, 13, 0.07);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate3d(var(--type-x, 0), -50%, 0);
  transition:
    transform 1.5s var(--ease),
    opacity 1.15s var(--ease);
  transition-delay: 0.22s;
}
.portal-service-row:nth-child(odd) .portal-service-type {
  left: 100%;
  right: auto;
  margin-left: clamp(2rem, 6vw, 6rem);
  text-align: left;
  --type-x: 14%;
}
.portal-service-row:nth-child(even) .portal-service-type {
  left: auto;
  right: 100%;
  margin-right: clamp(2rem, 6vw, 6rem);
  text-align: right;
  --type-x: -14%;
}
.portal-service-row.is-in .portal-service-type {
  opacity: 1;
  --type-x: 0%;
}
.portal-service-row .portal-service-media {
  opacity: 0;
  transform: translate3d(var(--media-x, -3.5rem), 0, 0) scale(0.94);
  transition:
    opacity 1.05s var(--ease),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-service-row:nth-child(even) .portal-service-media {
  --media-x: 3.5rem;
}
.portal-service-row.is-in .portal-service-media {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.portal-service-row .portal-service-overlay {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 0.85s var(--ease) 0.18s,
    transform 0.85s var(--ease) 0.18s;
}
.portal-service-row .portal-service-cta {
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  transition:
    opacity 0.75s var(--ease) 0.3s,
    transform 0.75s var(--ease) 0.3s;
}
.portal-service-row.is-in .portal-service-overlay,
.portal-service-row.is-in .portal-service-cta {
  opacity: 1;
  transform: none;
}
.portal-service-row .portal-service-desc {
  opacity: 0;
  transform: translate3d(var(--desc-x, 2rem), 1rem, 0);
  transition:
    opacity 0.95s var(--ease) 0.14s,
    transform 0.95s var(--ease) 0.14s;
}
.portal-service-row:nth-child(even) .portal-service-desc {
  --desc-x: -2rem;
}
.portal-service-row.is-in .portal-service-desc {
  opacity: 1;
  transform: none;
}
.portal-service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  position: relative;
  width: 100%;
  max-width: var(--service-text);
  min-width: 0;
  padding: clamp(0.35rem, 1vw, 0.75rem) 0;
  overflow: visible;
  isolation: isolate;
}
.portal-service-desc {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  width: 100%;
  max-width: 28ch;
  overflow-wrap: anywhere;
}
.portal-service {
  --service-text: min(28ch, calc(36vw - var(--gutter)));
  --service-media: min(57.6ch, calc(62.4vw - clamp(1.5rem, 4.8vw, 3.6rem)));
  --service-media-height: clamp(12.6rem, 26.4vw, 18.6rem);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, var(--service-media)) minmax(15rem, var(--service-text));
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  box-shadow: none;
  text-decoration: none;
  transition: none;
}
.portal-service-row:nth-child(odd) .portal-service {
  justify-content: start;
  margin-left: 0;
  margin-right: auto;
}
.portal-service-row:nth-child(even) .portal-service {
  grid-template-columns: minmax(15rem, var(--service-text)) minmax(0, var(--service-media));
  justify-content: end;
  margin-right: 0;
  margin-left: auto;
}
.portal-service-row:nth-child(even) .portal-service-media-col {
  order: 2;
}
.portal-service-row:nth-child(even) .portal-service-copy {
  order: 1;
  align-items: flex-end;
  text-align: right;
}
.portal-service:hover,
.portal-service:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.portal-service-media-col {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  width: 100%;
  max-width: var(--service-media);
  min-width: 0;
  min-height: 0;
}
.portal-service-media {
  position: relative;
  container-type: inline-size;
  flex: none;
  width: 100%;
  height: var(--service-media-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portal-service-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(0.75rem, 2vw, 1.1rem);
  left: clamp(0.75rem, 2vw, 1.1rem);
  right: clamp(0.75rem, 2vw, 1.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
}
.portal-service-title {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(2.35rem, 14cqw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.portal-service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(20, 17, 13, 0.5) 0%, rgba(20, 17, 13, 0.08) 38%, rgba(20, 17, 13, 0) 52%),
    linear-gradient(to top, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0) 42%);
  pointer-events: none;
}
.portal-service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.85s var(--ease);
  filter: none;
}
.portal-service:hover .portal-service-media img,
.portal-service:focus-visible .portal-service-media img {
  transform: scale(1.05);
}
.portal-service-cta {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 2vw, 1.35rem);
  bottom: clamp(1rem, 2vw, 1.35rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.portal-service-cta i {
  font-size: 0.72rem;
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.portal-service:hover .portal-service-cta i {
  transform: translateX(4px);
}

.portal-service--soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}
.portal-service--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}
.portal-service--soon .portal-service-media img {
  filter: saturate(0.65) grayscale(0.25);
}
.portal-service-cta--muted {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.portal-gravity {
  position: relative;
  background: #fff;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.page-portal.is-portal-intro-flow .portal-gravity.portal-intro-panel {
  background: #fff;
}
.portal-gravity-title {
  position: relative;
  z-index: 2;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--gutter);
  max-width: none;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}
.portal-gravity-highlight {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 0;
  line-height: 1.05;
  letter-spacing: inherit;
  font-family: inherit;
  font-weight: inherit;
}
.portal-gravity-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  width: 100%;
  height: clamp(20rem, 42vw, 34rem);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portal-gravity-stage::-webkit-scrollbar {
  display: none;
}
.portal-gravity-piece {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  margin: 0;
  flex: 0 0 clamp(18rem, 34vw, 30rem);
  width: clamp(18rem, 34vw, 30rem);
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(0, 0.8rem, 0);
  transition:
    transform 0.7s var(--ease),
    opacity 0.7s var(--ease);
  transition-delay: calc(var(--gd, 0) * 45ms);
  will-change: transform, opacity;
}
.portal-gravity-piece:nth-child(1),
.portal-gravity-piece:nth-child(4),
.portal-gravity-piece:nth-child(8) {
  flex-basis: clamp(26rem, 52vw, 46rem);
  width: clamp(26rem, 52vw, 46rem);
}
.portal-gravity-piece:nth-child(2),
.portal-gravity-piece:nth-child(5),
.portal-gravity-piece:nth-child(9) {
  flex-basis: clamp(16rem, 27vw, 22rem);
  width: clamp(16rem, 27vw, 22rem);
}
.portal-gravity-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.65s var(--ease), filter 0.65s var(--ease);
}
.portal-gravity.is-falling .portal-gravity-piece {
  opacity: 1;
  transform: none;
}
.portal-gravity-piece:hover img,
.portal-gravity-piece:focus-visible img {
  transform: scale(1.025);
  filter: contrast(1.03);
}
.portal-gravity-gallery {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  width: 100%;
  padding-inline: var(--gutter);
}
.portal-gravity-gallery .portal-gravity-stage {
  flex: 1;
  min-width: 0;
}
.portal-gravity-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 3rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.portal-gravity-nav[disabled] {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}
.portal-gravity-nav:hover,
.portal-gravity-nav:focus-visible {
  background: transparent;
  color: var(--sad-blue-light, #3a6a98);
}
.portal-gravity-nav:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
.portal-gravity-nav i {
  transition: transform 0.2s ease;
}
.portal-gravity-nav--prev:hover i,
.portal-gravity-nav--prev:focus-visible i {
  transform: translateX(-3px);
}
.portal-gravity-nav--next:hover i,
.portal-gravity-nav--next:focus-visible i {
  transform: translateX(3px);
}
.portal-gravity-nav:active {
  opacity: 0.55;
}
.portal-gravity-piece {
  cursor: pointer;
}
.portal-gravity-piece:focus-visible {
  outline: 2px solid var(--sad-blue-light, #3a6a98);
  outline-offset: 3px;
}
.portal-gravity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(15, 12, 9, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease, ease), visibility 0.35s;
}
.portal-gravity-lightbox:not([hidden]) {
  display: flex;
}
.portal-gravity-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.portal-gravity-lightbox img {
  max-width: min(90vw, 72rem);
  max-height: 85vh;
  border-radius: var(--radius, 0.5rem);
  box-shadow: var(--shadow-lg, 0 24px 48px rgba(0, 0, 0, 0.35));
  object-fit: contain;
}
.portal-gravity-lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.portal-gravity-lightbox-close:hover,
.portal-gravity-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}
.portal-gravity-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 8vw, 3.25rem);
  height: clamp(2.5rem, 8vw, 3.25rem);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.25rem);
  cursor: pointer;
  transition: background 0.2s ease;
}
.portal-gravity-lightbox-nav:hover,
.portal-gravity-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}
.portal-gravity-lightbox-nav--prev { left: clamp(0.5rem, 3vw, 1.5rem); }
.portal-gravity-lightbox-nav--next { right: clamp(0.5rem, 3vw, 1.5rem); }
.portal-cinquepermille {
  position: relative;
  isolation: isolate;
  background: #f4f7fa;
  padding: clamp(5.5rem, 10vw, 8rem) var(--gutter) clamp(6rem, 11vw, 9rem);
  overflow: hidden;
  transition: background-color 0.65s var(--ease);
}
.portal-cinquepermille::before,
.portal-cinquepermille::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s var(--ease);
}
.portal-cinquepermille::before {
  width: clamp(18rem, 42vw, 38rem);
  aspect-ratio: 1;
  top: -24%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 208, 0, 0.13), transparent 68%);
}
.portal-cinquepermille::after {
  width: clamp(20rem, 48vw, 44rem);
  aspect-ratio: 1;
  left: -15%;
  bottom: -38%;
  background: radial-gradient(circle, rgba(82, 142, 192, 0.2), transparent 68%);
}
.portal-cinquepermille-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
}
.portal-cinquepermille-waves span {
  position: absolute;
  left: -12%;
  width: 124%;
  height: clamp(9rem, 20vw, 18rem);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transform-origin: center;
}
.portal-cinquepermille-waves span:not(:nth-child(3)) {
  display: none;
}
.portal-cinquepermille-waves span:nth-child(1) {
  top: 28%;
  transform: rotate(-5deg);
}
.portal-cinquepermille-waves span:nth-child(2) {
  top: 39%;
  left: -18%;
  width: 136%;
  transform: rotate(4deg);
}
.portal-cinquepermille-waves span:nth-child(3) {
  top: 51%;
  transform: rotate(-3deg);
  border-color: rgba(255, 208, 0, 0.13);
}
.portal-cinquepermille-waves span:nth-child(4) {
  top: 63%;
  left: -20%;
  width: 140%;
  transform: rotate(5deg);
}
.portal-cinquepermille-waves span:nth-child(5) {
  top: 75%;
  transform: rotate(-4deg);
}
.portal-cinquepermille-intro,
.portal-cinquepermille-hero,
.portal-cinquepermille-info {
  position: relative;
  z-index: 1;
}
.portal-cinquepermille-title,
.portal-cinquepermille-lead,
.portal-cinquepermille-label,
.portal-cinquepermille-cf,
.portal-cinquepermille-info-btn {
  transition:
    color 0.65s var(--ease),
    border-color 0.65s var(--ease),
    background-color 0.65s var(--ease);
}
.portal-cinquepermille.is-dark {
  background: #17364f;
}
.portal-cinquepermille.is-dark::before,
.portal-cinquepermille.is-dark::after {
  opacity: 1;
}
.portal-cinquepermille.is-dark .portal-cinquepermille-waves {
  opacity: 1;
}
.portal-cinquepermille.is-dark .portal-cinquepermille-title {
  color: #fff;
}
.portal-cinquepermille.is-dark .portal-cinquepermille-lead {
  color: rgba(255, 255, 255, 0.78);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-label {
  color: rgba(255, 255, 255, 0.62);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-cf {
  color: rgba(255, 255, 255, 0.94);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-info-btn {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-info-btn:hover,
.portal-cinquepermille.is-dark .portal-cinquepermille-info-btn:focus-visible,
.portal-cinquepermille.is-dark .portal-cinquepermille-tip:focus-within .portal-cinquepermille-info-btn,
.portal-cinquepermille.is-dark .portal-cinquepermille-tip:hover .portal-cinquepermille-info-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-info {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(5, 22, 35, 0.22);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-copy {
  color: #ffd000;
  border-color: rgba(255, 208, 0, 0.4);
}
.portal-cinquepermille.is-dark .portal-cinquepermille-copy:hover,
.portal-cinquepermille.is-dark .portal-cinquepermille-copy:focus-visible {
  color: #fff;
  border-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .portal-cinquepermille,
  .portal-cinquepermille-title,
  .portal-cinquepermille-lead,
  .portal-cinquepermille-label,
  .portal-cinquepermille-cf,
  .portal-cinquepermille-info-btn {
    transition: none;
  }
}
.portal-cinquepermille-intro {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}
.portal-cinquepermille-title {
  margin: 0;
  padding-inline: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.portal-cinquepermille-lead {
  display: block;
  width: min(100%, 46ch);
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  padding-inline: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: normal;
}
.portal-cinquepermille-hero {
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 15vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: #ffd000;
}
.portal-cinquepermille-info {
  width: fit-content;
  max-width: min(100%, 46rem);
  text-align: center;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(23, 54, 79, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 50px rgba(23, 54, 79, 0.08);
  overflow: visible;
  transition:
    background-color 0.65s var(--ease),
    border-color 0.65s var(--ease),
    box-shadow 0.65s var(--ease);
}
.portal-cinquepermille-label {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.portal-cinquepermille-cf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.portal-cinquepermille-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.portal-cinquepermille-info-btn {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-soft);
  background: #fff;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.portal-cinquepermille-info-btn:hover,
.portal-cinquepermille-info-btn:focus-visible,
.portal-cinquepermille-tip:focus-within .portal-cinquepermille-info-btn,
.portal-cinquepermille-tip:hover .portal-cinquepermille-info-btn {
  color: var(--brand);
  border-color: var(--brand);
}
.portal-cinquepermille-tip-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.7rem);
  z-index: 3;
  width: min(18rem, 72vw);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 17, 13, 0.12);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.92rem;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: left;
  transform: translateX(-50%) translateY(0.25rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s;
}
.portal-cinquepermille-tip-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.portal-cinquepermille-tip:hover .portal-cinquepermille-tip-panel,
.portal-cinquepermille-tip:focus-within .portal-cinquepermille-tip-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.portal-cinquepermille-copy {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--brand);
  border: 1px solid rgba(111, 122, 90, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.portal-cinquepermille-copy:hover,
.portal-cinquepermille-copy:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(111, 122, 90, 0.08);
}

.portal-contact-block {
  background: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(4rem, 10vw, 7rem);
  padding-inline: var(--gutter);
}
.portal-contact-panel {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  min-height: clamp(22rem, 58vh, 34rem);
  overflow: hidden;
  border: 0;
  background: #fff;
  color: var(--ink);
  isolation: isolate;
}
.portal-contact-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;
  transform: scale(1);
  transition: transform 0.85s var(--ease);
}
.portal-contact-panel::after {
  content: none;
  display: none;
}
.portal-contact-panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  min-height: inherit;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
}
.portal-contact-panel-title {
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: none;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .portal-contact-panel-title {
    white-space: normal;
  }
}
.portal-contact-panel-text {
  margin: 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink-soft);
  text-shadow: none;
}
.portal-contact-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.45rem;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  background: var(--sad-blue-light, #3a6a98);
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.portal-contact-panel:hover img,
.portal-contact-panel:focus-visible img {
  transform: scale(1.04);
}
.portal-contact-panel:hover .portal-contact-panel-badge,
.portal-contact-panel:focus-visible .portal-contact-panel-badge {
  background: #284870;
  color: #fff;
  transform: translateY(-2px);
}

.footer-logo-img--mark,
.mobile-menu-logo--mark {
  height: 52px;
  width: auto;
}
.footer--portal .footer-logo-img--mark { height: 64px; margin-bottom: 1rem; }

@media (max-width: 980px) {
  .page-portal .nav-menu .nav-link:not(.hamburger) { display: none; }
}

@media (max-width: 860px) {
  .page-portal.is-portal-intro .portal-intro-panel {
    padding-inline: var(--gutter);
    filter: none;
  }
  .page-portal.is-portal-intro .portal-intro-panel.is-leaving {
    filter: none;
  }
  .page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-services-intro,
  .page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row {
    padding-inline: var(--gutter);
  }
  .page-portal.is-portal-intro:not(.is-portal-intro-flow) .portal-service-row .portal-service {
    max-width: min(40ch, 100%);
  }
  .page-portal.is-portal-intro-flow .portal-services-intro,
  .page-portal.is-portal-intro-flow .portal-services-list {
    padding-inline: var(--gutter);
  }
  .page-portal.is-portal-intro-flow .portal-services-list {
    gap: clamp(2rem, 8vw, 3rem);
  }

  /* Portal mobile: one gutter, full-bleed section backgrounds */
  .page-portal .portal-hero,
  .page-portal .portal-services,
  .page-portal .portal-gravity,
  .page-portal .portal-cinquepermille,
  .page-portal .portal-contact-block,
  .page-portal .portal-mission {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .page-portal .portal-hero,
  .page-portal .portal-services,
  .page-portal .portal-gravity,
  .page-portal .portal-cinquepermille,
  .page-portal .portal-contact-block {
    padding-inline: 0;
  }
  .page-portal .portal-mission,
  .portal-hero-stage,
  .portal-services-intro,
  .portal-services-list,
  .portal-gravity-title,
  .portal-cinquepermille-intro,
  .portal-cinquepermille-lead,
  .portal-cinquepermille-info {
    padding-inline: var(--gutter);
  }
  .portal-gravity-title {
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
    margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
  }
  .portal-gravity-highlight {
    display: inline;
    max-width: 100%;
  }
  .portal-cinquepermille {
    overflow-x: clip;
  }
  .portal-cinquepermille-title {
    font-size: clamp(2.4rem, 12vw, 4.5rem);
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
    padding-inline: var(--gutter);
  }
  .portal-cinquepermille-hero {
    font-size: clamp(3rem, 18vw, 4.75rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .portal-cinquepermille-lead {
    white-space: normal;
    font-size: clamp(0.72rem, 3.4vw, 1rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .portal-gravity {
    padding-bottom: clamp(6rem, 12vw, 8rem);
  }
  .portal-gravity-gallery {
    display: block;
    padding-inline: var(--gutter);
    max-width: 100%;
    overflow: hidden;
  }
  .portal-gravity-nav {
    display: none;
  }
  .portal-gravity-stage {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    height: clamp(18rem, 72vw, 24rem);
    margin-top: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .portal-gravity-piece:nth-child(n) {
    flex: 0 0 78vw;
    width: 78vw;
    height: 100%;
    aspect-ratio: auto;
  }
  .portal-gravity-piece:nth-child(2),
  .portal-gravity-piece:nth-child(5),
  .portal-gravity-piece:nth-child(9) {
    flex-basis: 62vw;
    width: 62vw;
  }
  .portal-gravity-piece--desktop-only {
    display: block;
  }
  .portal-cinquepermille {
    padding: clamp(6rem, 12vw, 8rem) 0 clamp(6.5rem, 14vw, 10rem);
  }
  .portal-contact-block {
    padding-top: clamp(4.5rem, 9vw, 5.5rem);
    padding-inline: 0;
    padding-bottom: clamp(4rem, 10vw, 7rem);
  }
  .portal-contact-panel {
    border: none;
    border-radius: 0;
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }
  .portal-services-list {
    gap: clamp(2rem, 8vw, 3rem);
  }
  .portal-service-row + .portal-service-row::before {
    display: none;
  }
  .portal-service-row:nth-child(odd),
  .portal-service-row:nth-child(even) {
    justify-content: center;
  }
  .portal-service-row:nth-child(even) .portal-service,
  .portal-service-row:nth-child(odd) .portal-service {
    --service-text: min(28ch, 100%);
    --service-media: min(34ch, 100%);
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(40ch, 100%);
    margin-inline: auto;
    margin-left: auto;
    margin-right: auto;
    gap: clamp(1rem, 4vw, 1.5rem);
  }
  .portal-service-media-col,
  .portal-service-media {
    margin-inline: auto;
  }
  .portal-service-row:nth-child(even) .portal-service-media-col,
  .portal-service-row:nth-child(even) .portal-service-copy {
    order: unset;
  }
  .portal-service-copy {
    display: none;
  }
  .portal-service-type,
  .portal-service-desc {
    display: none;
  }
  .portal-service-row .portal-service-media {
    --media-x: 0;
    transform: translate3d(0, 1.5rem, 0) scale(0.96);
  }
  .portal-service-row.is-in .portal-service-media {
    transform: none;
  }
  .portal-service-media {
    flex: none;
    height: auto;
    min-height: 0;
    max-height: var(--service-media-height);
    aspect-ratio: 16 / 11;
  }
  .portal-service-media img {
    position: relative;
    inset: auto;
    height: 100%;
  }
  .portal-service-overlay {
    align-items: center;
    text-align: center;
  }
  .portal-service-title {
    font-size: clamp(2rem, 11vw, 3.25rem);
    text-align: center;
    width: 100%;
  }
  .portal-service-cta {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translate3d(0, 0.75rem, 0);
  }
  .portal-service-row.is-in .portal-service-cta {
    transform: translateX(-50%);
  }

  /*
   * Animazione statica (locked): titolo sopra la foto + calligrafia dietro.
   * In flow / risalita resta il layout sopra (titolo sulla foto).
   */
  .page-portal.is-portal-intro-locked .portal-service {
    position: relative;
    gap: 0;
    padding-bottom: clamp(4.75rem, 16vw, 6rem);
  }
  .page-portal.is-portal-intro-locked .portal-service-copy {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
  }
  .page-portal.is-portal-intro-locked .portal-service-desc {
    display: block;
    position: absolute;
    left: 50%;
    top: auto;
    right: auto;
    bottom: 0.35rem;
    z-index: 1;
    width: min(28ch, 92%);
    max-width: 28ch;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(0.98rem, 3.9vw, 1.2rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    opacity: 0;
    transition: opacity 0.85s var(--ease) 0.2s;
  }
  .page-portal.is-portal-intro-locked .portal-service-row.is-in .portal-service-desc {
    opacity: 1;
    transform: translateX(-50%);
  }
  .page-portal.is-portal-intro-locked .portal-service-type {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    font-size: clamp(15rem, 96vw, 28rem);
    font-weight: 300;
    font-style: italic;
    line-height: 0.8;
    letter-spacing: -0.05em;
    white-space: nowrap;
    color: rgba(20, 17, 13, 0.055);
    -webkit-text-stroke: 1px rgba(20, 17, 13, 0.08);
    opacity: 1;
    z-index: 0;
  }
  .page-portal.is-portal-intro-locked .portal-service-row.is-in .portal-service-type {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  .page-portal.is-portal-intro-locked .portal-service-media-col {
    width: 100%;
    max-width: min(40ch, 100%);
  }
  .page-portal.is-portal-intro-locked .portal-service-media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    border: none;
    background: transparent;
    padding-top: clamp(3.35rem, 12vw, 4.5rem);
  }
  .page-portal.is-portal-intro-locked .portal-service-media::after {
    top: auto;
    height: 42%;
    background: linear-gradient(to top, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0) 100%);
  }
  .page-portal.is-portal-intro-locked .portal-service-media img {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border: 1px solid var(--line);
  }
  .page-portal.is-portal-intro-locked .portal-service-overlay {
    order: 1;
    position: relative;
    inset: auto;
    z-index: 1;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 0 1.35rem;
    padding: 0;
    align-items: center;
    text-align: center;
    pointer-events: none;
  }
  .page-portal.is-portal-intro-locked .portal-service-title {
    color: var(--ink);
    text-shadow: none;
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }
  .page-portal.is-portal-intro-locked .portal-service-cta {
    order: 3;
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(0.85rem, 3vw, 1.2rem);
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  }
  .page-portal.is-portal-intro-locked .portal-service-row.is-in .portal-service-cta {
    transform: translateX(-50%);
  }
  .page-portal.is-portal-intro-locked .portal-service-row .portal-service-media {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .portal-hero { height: 125vh; }
  .portal-hero-sticky {
    padding-top: clamp(5.5rem, 12vh, 7.5rem);
  }
  .portal-hero-stage {
    --portal-logo-size: min(52vw, 22rem);
  }
  .portal-hero-title {
    font-size: clamp(2.4rem, 7vw, 4rem);
    white-space: normal;
  }
  .portal-mission {
    padding-block:
      clamp(1rem, 4vw, 1.75rem)
      clamp(5.5rem, 12vw, 7.5rem);
    padding-inline: var(--gutter);
  }
}

@media (max-width: 860px) {
  .portal-hero {
    height: 118vh;
    overflow-x: clip;
  }
  .portal-hero-sticky {
    justify-content: center;
    padding-top: 0;
    overflow-x: clip;
  }
  .portal-hero-stage {
    --portal-logo-size: min(92vw, 28rem);
    --portal-logo-lift: 11vh;
    --portal-logo-scale-min: 0.88;
    flex: 0 1 auto;
    padding-inline: var(--gutter);
  }
  .portal-logo-wrap {
    margin-bottom: 0;
    transform:
      translate3d(0, calc(var(--portal-t) * var(--portal-logo-lift) * -1), 0)
      scale(calc(1 - var(--portal-t) * (1 - var(--portal-logo-scale-min))));
    transform-origin: center top;
  }
  .portal-hero-copy {
    top: calc(
      var(--portal-logo-size) * (1 - var(--portal-t) * (1 - var(--portal-logo-scale-min)))
      - 0.375rem
      - var(--portal-t) * var(--portal-logo-size) * (1 - var(--portal-logo-scale-min))
    );
    transform: translate3d(0, calc(var(--portal-t) * var(--portal-logo-lift) * -1), 0);
  }
  .portal-hero-title {
    font-size: clamp(2.4rem, 10vw, 3.75rem);
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .portal-mission {
    margin-top: -0.75rem;
    overflow-x: clip;
    padding-block:
      clamp(0.25rem, 1.5vw, 0.5rem)
      clamp(5.5rem, 12vw, 7.5rem);
    padding-inline: var(--gutter);
  }
  .portal-services-intro {
    padding-top: clamp(4.5rem, 10vw, 6.5rem);
  }
  .portal-hero-text {
    max-width: 30ch;
    font-size: clamp(1.35rem, 4.8vw, 1.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-portal.is-portal-intro .portal-intro-panel,
  .page-portal.is-portal-intro .portal-services-heading,
  .page-portal.is-portal-intro .portal-intro > .portal-scroll {
    transition: none !important;
    filter: none !important;
  }
  .page-portal.is-portal-intro .portal-intro-panel {
    transform: none !important;
  }
  .page-portal.is-portal-intro .portal-intro-panel.is-active .portal-services-heading,
  .page-portal.is-portal-intro .portal-intro-panel.is-active .portal-gravity-title,
  .page-portal.is-portal-intro .portal-intro-panel.is-active .portal-gravity-gallery {
    opacity: 1 !important;
    transform: none !important;
  }
  .portal-hero { height: auto; min-height: 100svh; }
  .portal-hero-sticky { position: relative; }
  .portal-logo-wrap {
    transform: none !important;
    will-change: auto;
  }
  .portal-hero-copy {
    transform: none !important;
    opacity: 1 !important;
    max-width: none !important;
    will-change: auto;
  }
  .portal-service-media img,
  .portal-service-cta i,
  .portal-service-type,
  .portal-service-row .portal-service-media,
  .portal-service-row .portal-service-desc,
  .portal-service-row .portal-service-overlay,
  .portal-service-row .portal-service-cta {
    animation: none !important;
    transition: none !important;
  }
  .portal-service-type {
    opacity: 1 !important;
    transform: translate3d(0, -50%, 0) !important;
  }
  .portal-service-row .portal-service-media,
  .portal-service-row .portal-service-desc,
  .portal-service-row .portal-service-overlay,
  .portal-service-row .portal-service-cta {
    opacity: 1 !important;
    transform: none !important;
  }
  .portal-gravity-piece {
    transition: none !important;
    opacity: 1 !important;
  }
  @media (min-width: 861px) {
    .portal-gravity-piece {
      transform: none !important;
    }
  }
  @media (max-width: 860px) {
    .portal-gravity-piece {
      transform: none !important;
    }
  }
  .portal-gravity-stage {
    scroll-behavior: auto;
  }
  .portal-gravity-lightbox {
    transition: none;
  }
}

/* =========================================================================
   Casa Agrifoglio — palette home e sezione Scopri senza fotografie
   ========================================================================= */
.page-casa-agrifoglio {
  --brand: #3a6a98;
  --brand-deep: #284870;
}

.page-casa-agrifoglio .eyebrow {
  gap: 0;
  color: var(--brand);
}
.page-casa-agrifoglio .eyebrow::before {
  content: none;
  display: none;
}
.page-casa-agrifoglio .dofacciamo .eyebrow {
  color: #fff;
}
.page-casa-agrifoglio .intro .eyebrow,
.page-casa-agrifoglio .intro .intro-headline {
  color: #cf3a2e;
}
.page-casa-agrifoglio .cta {
  display: flex;
  align-items: center;
  min-height: clamp(38rem, 74vh, 54rem);
  margin-inline: 0;
  background: #fff;
}
.page-casa-agrifoglio .cta-video {
  left: var(--gutter);
  right: var(--gutter);
  width: calc(100% - (var(--gutter) * 2));
}
.page-casa-agrifoglio .cta::after {
  left: var(--gutter);
  right: var(--gutter);
}

.page-casa-agrifoglio .scopri-card {
  align-items: center;
  justify-content: center;
  min-height: clamp(17rem, 24vw, 21rem);
  aspect-ratio: auto;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(58, 106, 152, 0.22);
  background: #fff;
  color: var(--ink);
  text-align: center;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.page-casa-agrifoglio .scopri-card::before,
.page-casa-agrifoglio .scopri-card::after {
  content: none;
  display: none;
}
.page-casa-agrifoglio .scopri-card:hover,
.page-casa-agrifoglio .scopri-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(58, 106, 152, 0.6);
  background: #f4f7fa;
}
.page-casa-agrifoglio .scopri-card-title {
  color: var(--ink);
  text-shadow: none;
  max-width: 11ch;
  margin-inline: auto;
  text-align: center;
}
.page-casa-agrifoglio .scopri-card-link {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-top: 0;
  padding-top: 0;
  transform: translateX(-50%);
  color: var(--brand);
  opacity: 1;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .page-casa-agrifoglio .scopri-card-link {
    left: 50%;
    right: auto;
    bottom: 1.25rem;
    transform: translateX(-50%);
    font-size: 0.72rem;
  }
  .page-casa-agrifoglio .scopri-card-link::before {
    content: none;
  }
}

/* Casa Agrifoglio — contatto semplice e immediato */
.page-casa-agrifoglio .contact-simple {
  background: #f4f7fa;
  padding-block: clamp(6rem, 12vw, 10rem);
  border-top: 1px solid rgba(58, 106, 152, 0.14);
}
.page-casa-agrifoglio .contact-simple-inner {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}
.page-casa-agrifoglio .contact-simple .eyebrow {
  justify-content: center;
}
.page-casa-agrifoglio .contact-simple-title {
  margin: 0.75rem 0 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.page-casa-agrifoglio .contact-simple-text {
  max-width: 38ch;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}
.page-casa-agrifoglio .contact-simple-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.page-casa-agrifoglio .contact-simple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 10rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.page-casa-agrifoglio .contact-simple-primary:hover,
.page-casa-agrifoglio .contact-simple-primary:focus-visible {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
}
.page-casa-agrifoglio .contact-simple-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}
.page-casa-agrifoglio .contact-simple-phone span {
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.page-casa-agrifoglio .contact-simple-phone:hover,
.page-casa-agrifoglio .contact-simple-phone:focus-visible {
  color: var(--brand);
}

@media (max-width: 640px) {
  .page-casa-agrifoglio .contact-simple-actions {
    flex-direction: column;
  }
  .page-casa-agrifoglio .contact-simple-phone {
    align-items: center;
  }
}
