/* ============================================================================
   FARMACIA SANTO SPIRITO — STILI DEL SITO
   Versione "premium & semplice": superfici piatte, bordi sottili, molta aria.
   ============================================================================ */

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  background: rgba(252,251,246,.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: 1.05rem;
  transition: padding var(--t) var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(252,251,246,.96); }
.header.scrolled .header-inner { padding-block: .7rem; }

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-display); font-size: 1.06rem; font-weight: 400; letter-spacing: -.01em; color: var(--ink-900); white-space: nowrap; }
.brand-text span { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  position: relative; padding: .5rem .75rem; font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink-700); transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .15rem; height: 1px;
  background: var(--green-600); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink-900); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--ink-900); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* header trasparente sopra l'apertura scura, poi diventa carta allo scroll */
.top-dark .header:not(.scrolled) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.top-dark .header:not(.scrolled) .brand-text b { color: #fff; }
.top-dark .header:not(.scrolled) .brand-text span { color: rgba(255,255,255,.5); }
.top-dark .header:not(.scrolled) .nav a { color: rgba(255,255,255,.78); }
.top-dark .header:not(.scrolled) .nav a:hover,
.top-dark .header:not(.scrolled) .nav a.is-active { color: #fff; }
.top-dark .header:not(.scrolled) .nav a::after { background: rgba(255,255,255,.85); }
.top-dark .header:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.top-dark .header:not(.scrolled) .btn-ghost:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.top-dark .header:not(.scrolled) .btn:not(.btn-ghost) { background: var(--bone-200); color: var(--forest-900); }
.top-dark .header:not(.scrolled) .btn:not(.btn-ghost):hover { background: #fff; }
.top-dark .header:not(.scrolled) .nav-toggle { color: #fff; border-color: rgba(255,255,255,.35); }

@media (max-width: 64em) {   /* = 1024 px col carattere normale; in em segue il testo ingrandito */
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- MENU MOBILE ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--forest-900); color: #fff;
  display: flex; flex-direction: column; padding: 1.6rem var(--gutter) 2.4rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s var(--ease-in-out), visibility 0s linear .45s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open { transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.mobile-menu a.mm-link {
  font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1); color: #fff;
}
.mobile-menu .mm-close { width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.mobile-menu .btn { flex: 1 1 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative; background: var(--forest-900); color: #fff; overflow: hidden;
  padding-top: clamp(7.5rem, 11vw, 10rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: var(--green-300); }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 4.6vw, 4.2rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.032em;
}
.hero h1 .accent-word { color: var(--green-300); }
.hero .lead { color: rgba(255,255,255,.72); font-size: var(--fs-md); margin-top: 1.5rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.4rem; }

.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--forest-900); margin-left: -11px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .78rem; }
.avatars span:first-child { margin-left: 0; }
.hero-trust .stars { color: var(--star); letter-spacing: 2px; font-size: .9rem; }
.hero-trust b { color: #fff; }
.hero-trust small { color: rgba(255,255,255,.6); display: block; font-size: var(--fs-xs); }

.hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-photo { position: relative; z-index: 2; width: 100%; max-width: 540px; }
@media (min-width: 64.0625em) {
  /* la foto poggia sul bordo inferiore dell'apertura */
  .hero { padding-bottom: 0; }
  .hero-inner { align-items: end; }
  .hero-copy { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
  .hero-visual { align-self: end; }
  .hero-photo { margin-bottom: -1px; }
}

/* ---------- MARQUEE (fascia servizi, statica e discreta) ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; width: auto; animation: none; }
.marquee-item { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.marquee-item svg { width: 16px; color: var(--green-400); }
.marquee-item:nth-child(n+8) { display: none; }

/* ---------- STATS — riga di numeri separati da filetti ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; padding: 2.2rem 1rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
/* tre numeri (chi-siamo, dal 2026-10-30: tolto «48 h referto», non confermato) */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 400; color: var(--ink-900); line-height: 1; }
.stat .num .suf { color: var(--green-500); }
.stat p { margin-top: .7rem; font-size: var(--fs-sm); color: var(--text-soft); font-weight: 400; max-width: 22ch; margin-inline: auto; line-height: 1.5; }

/* ---------- SERVIZI ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { display: flex; flex-direction: column; gap: .8rem; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { font-size: var(--fs-sm); color: var(--text-soft); }
.service-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.service-card .price { margin-left: auto; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink-900); }

/* ---------- TELEMEDICINA ---------- */
.tele {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  background: var(--forest-900); color: rgba(255,255,255,.78);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.tele-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 2; }
.tele h2 { color: #fff; }
.tele .pulse-svg { width: 100%; max-width: 420px; margin-inline: auto; }
.tele-list { display: grid; gap: .85rem; margin-top: 1.8rem; }
.tele-list li { display: flex; gap: .8rem; align-items: flex-start; }
.tele-list .chk { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: var(--green-300); display: grid; place-items: center; margin-top: .2rem; }
.tele-list .chk svg { width: 12px; height: 12px; stroke-width: 2.5; }
.tele-prices { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.tele-prices .tp b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: #fff; display: block; }
.tele-prices .tp span { font-size: var(--fs-xs); color: rgba(255,255,255,.55); letter-spacing: .06em; }

/* ---------- CHI SIAMO ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--r-2xl); width: 100%; }
.about-photo .tag { position: absolute; bottom: 1.2rem; left: 1.2rem; background: rgba(255,255,255,.95); border-radius: var(--r-md); padding: .9rem 1.2rem; display: flex; gap: .8rem; align-items: center; }
.about-photo .tag .mk { width: 40px; }
.about-photo .deco { display: none; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; margin-top: 2rem; }
.value { display: flex; gap: .9rem; align-items: flex-start; }
.value .ic { flex: none; width: 38px; height: 38px; border-radius: var(--r-xs); border: 1px solid var(--green-200); color: var(--green-700); display: grid; place-items: center; }
.value .ic svg { width: 19px; height: 19px; stroke-width: 1.5; }
.value b { display: block; font-weight: 600; }
.value p { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- RECENSIONI ---------- */
.reviews { background: var(--bg-alt); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.google-rating { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--line); padding: .7rem 1.1rem; border-radius: var(--r-sm); }
.google-rating .g { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink-900); }
.google-rating .stars { color: var(--star); }
.review-row { display: flex; gap: 1.2rem; }
/* le due tracce marquee della home diventano una griglia calma */
.reviews-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.review-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); width: auto; animation: none; }
.review-card {
  width: auto; background: var(--surface); border-radius: var(--r-lg); padding: 1.8rem;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem;
}
.review-card .stars { color: var(--star); font-size: .9rem; letter-spacing: 1px; }
.review-card p { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--ink-700); line-height: 1.6; }
.review-card .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .4rem; }
.review-card .who .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.review-card .who b { font-size: var(--fs-sm); display: block; font-weight: 600; }
.review-card .who small { font-size: var(--fs-xs); color: var(--text-muted); }
.review-card .gicon { width: 18px; height: 18px; margin-left: auto; opacity: .8; }

/* ---------- CONSIGLI / TIPS ---------- */
.tips-grid { grid-template-columns: repeat(3, 1fr); }
.tip-card { overflow: hidden; padding: 0; }
.tip-card .tip-top { padding: 1.8rem 1.8rem 0; }
.tip-card .tip-ill { height: 140px; margin-top: 1.4rem; background: var(--cream); display: grid; place-items: center; }
.tip-card .tip-ill svg { width: 52px; height: 52px; color: var(--green-600); stroke-width: 1.2; }
.tip-card .tip-body { padding: 1.5rem 1.8rem 1.9rem; }
.tip-card h3 { font-size: 1.25rem; }
.tip-card p { font-size: var(--fs-sm); color: var(--text-soft); margin-top: .5rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: var(--container-text); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; text-align: left; font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--ink-900); }
.faq-q .pm { flex: none; width: 26px; height: 26px; color: var(--green-700); display: grid; place-items: center; transition: transform .35s var(--ease); }
.faq-item.open .pm { transform: rotate(45deg); }
/* Da chiusa la risposta deve essere alta ZERO. Con box-sizing: border-box il
   riempimento non si comprime: restavano 24px e si leggeva la prima riga della
   risposta sotto la domanda (al 200% di zoom due righe). Il riempimento sta
   sul paragrafo, non sul contenitore. */
.faq-a { max-height: 0; overflow: hidden; padding: 0; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 0 1.5rem; color: var(--text-soft); max-width: 64ch; }

/* ---------- FASCIA CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--forest-900); color: rgba(255,255,255,.75); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .blob2 { display: none; }

/* ---------- CONTATTI ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.info-list { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-xs); border: 1px solid var(--green-200); color: var(--green-700); display: grid; place-items: center; }
.info-item .ic svg { width: 19px; height: 19px; stroke-width: 1.5; }
.info-item b { display: block; font-weight: 600; }
.info-item a, .info-item p { color: var(--text-soft); font-size: var(--fs-sm); }
.info-item a:hover { color: var(--ink-900); }
.hours-table { margin-top: 1.2rem; }
.hours-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.hours-row.today { font-weight: 600; color: var(--ink-900); }
.hours-row .open { color: var(--green-700); font-weight: 600; }
.hours-row .closed { color: #a35a49; font-weight: 600; }
/* nei festivi la riga di oggi rimanda al telefono: il numero si riconosce come link (2026-11-01) */
.hours-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.map-card { border-radius: var(--r-2xl); overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.map-card:hover iframe { filter: grayscale(0) contrast(1); }

/* ---------- FOOTER ---------- */
.footer { background: var(--forest-900); color: rgba(255,255,255,.62); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
/* 2026-10-30: i titoletti delle colonne non sono piu' h4 (saltavano da h2 a h4):
   .footer-h e' un paragrafo con la stessa resa. .footer h4 resta per sicurezza. */
.footer h4, .footer .footer-h { color: rgba(255,255,255,.55); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; line-height: var(--lh-snug); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer a { color: rgba(255,255,255,.68); font-size: var(--fs-sm); display: block; padding: .32rem 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand-text b { color: #fff; } .footer .brand-text span { color: rgba(255,255,255,.6); }  /* .45 dava 4,47:1, sotto AA */
.footer .fdesc { font-size: var(--fs-sm); color: rgba(255,255,255,.55); margin-top: 1.2rem; max-width: 34ch; }
.social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social a { width: 38px; height: 38px; border-radius: var(--r-xs); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; padding: 0; }
.social a:hover { border-color: rgba(255,255,255,.5); background: transparent; }
.social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3.5rem; padding: 1.6rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(255,255,255,.6); }  /* .4 dava 3,8:1, sotto AA */

/* ---------- TORNA SU ---------- */
.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest-900); color: #fff; display: grid; place-items: center; z-index: 900;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--forest-800); }

/* elementi decorativi rimossi dal restyling (restano neutralizzati) */
.preloader, .cursor-dot, .cursor-ring, .scroll-progress,
.hero-bg, .blob, .hero-grid-lines, .hero-watermark, .hero-ring, .hero-dashring, .float-card { display: none !important; }

/* ============================================================================
   COMPONENTI PAGINE INTERNE
   ============================================================================ */

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--forest-900); color: rgba(255,255,255,.75);
  padding-top: clamp(8rem, 13vw, 11rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.page-hero .lead { color: rgba(255,255,255,.7); margin-top: 1.2rem; max-width: 58ch; }
.page-hero .eyebrow { color: var(--green-300); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.page-hero .badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-xs); letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 1.4rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current] { color: rgba(255,255,255,.9); }
.breadcrumb.on-light { color: var(--text-muted); }
.breadcrumb.on-light a { color: var(--text-soft); }
.breadcrumb.on-light a:hover { color: var(--ink-900); }
.breadcrumb.on-light [aria-current] { color: var(--ink-900); }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.media-left > .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--r-2xl); }
.split-media.boxed { background: var(--cream); border-radius: var(--r-2xl); padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center; }

/* ---------- PROSE ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--text-soft); line-height: 1.78; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.8rem; }
.prose h3 { font-size: var(--fs-xl); margin-top: 2rem; }
.prose ul.ticks { display: grid; gap: .8rem; margin-top: .6rem; }
.prose ul.ticks li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text-soft); }
.prose ul.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .35rem; border-radius: 50%;
  border: 1px solid var(--green-300);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23587541' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.prose a:not(.btn) { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- SERVIZI: categorie & dettaglio ---------- */
.svc-cat + .svc-cat { margin-top: clamp(3rem, 8vw, 6rem); }
.svc-cat-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.svc-cat-head .ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--green-200); color: var(--green-700); display: grid; place-items: center; }
.svc-cat-head .ic svg { width: 22px; height: 22px; stroke-width: 1.5; }
.svc-cat-head h2 { font-size: var(--fs-2xl); }
.svc-cat-head p { color: var(--text-soft); font-size: var(--fs-sm); }
.svc-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--sp-5); }
.svc-detail { display: flex; flex-direction: column; gap: .7rem; }
.svc-detail .top { display: flex; align-items: flex-start; gap: .9rem; }
.svc-detail h3 { font-size: 1.22rem; }
.svc-detail p { font-size: var(--fs-sm); color: var(--text-soft); }
.svc-detail .svc-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.svc-detail .price { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink-900); margin-left: auto; }

/* listino */
.price-table { display: grid; gap: 0; }
.price-table .pt-row { display: flex; align-items: center; gap: 1rem; padding: 1.15rem .2rem; border-bottom: 1px solid var(--line); }
.price-table .pt-row:last-child { border-bottom: 0; }
.price-table .pt-row b { font-size: var(--fs-md); font-weight: 500; }
.price-table .pt-row small { display: block; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 400; }
.price-table .pt-price { margin-left: auto; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; color: var(--ink-900); white-space: nowrap; }

/* ---------- COME FUNZIONA ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); }
.process .pstep { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.process .pstep .n { width: auto; height: auto; border-radius: 0; background: none; color: var(--green-600); display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: .8rem; place-items: initial; }
.process .pstep h3 { font-size: 1.15rem; }
.process .pstep p { font-size: var(--fs-sm); color: var(--text-soft); margin-top: .5rem; }
.process.on-dark .pstep { border-top-color: rgba(255,255,255,.18); }
.process.on-dark .pstep .n { background: none; color: var(--green-300); }
.process.on-dark .pstep p { color: rgba(255,255,255,.65); }

/* ---------- BLOG / CONSIGLI ---------- */
.post-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.post-feature .pf-media { background: var(--cream); min-height: 300px; display: grid; place-items: center; color: var(--green-700); }
.post-feature .pf-media svg { width: 84px; height: 84px; stroke-width: 1.1; opacity: .8; }
.post-feature .pf-body { padding: clamp(1.8rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-size: var(--fs-2xl); margin: .8rem 0; }
.post-feature p { color: var(--text-soft); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .pc-top { height: 150px; display: grid; place-items: center; background: var(--cream); color: var(--green-700); }
.post-card .pc-top svg { width: 46px; height: 46px; stroke-width: 1.2; }
.post-card .pc-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h3 { font-size: 1.18rem; }
.post-card p { font-size: var(--fs-sm); color: var(--text-soft); flex: 1; }
.post-card .pc-foot { margin-top: .6rem; }

/* ---------- RECENSIONI: griglia completa ---------- */
.reviews-grid { columns: 3; column-gap: var(--sp-5); }
.reviews-grid .review-card { width: auto; break-inside: avoid; margin-bottom: var(--sp-5); display: inline-flex; }
.rating-hero { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap; justify-content: center; padding: clamp(2rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.rating-hero .big-score { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 400; color: var(--ink-900); line-height: 1; }
.rating-hero .rh-stars { color: var(--star); font-size: 1.25rem; letter-spacing: 2px; }
.rating-hero .rh-divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- INFO CARDS ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.info-card { text-align: center; padding: 2.4rem 1.5rem; }
.info-card .ic { width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--green-200); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.info-card .ic svg { width: 22px; height: 22px; stroke-width: 1.5; }
.info-card b { display: block; font-size: var(--fs-md); font-weight: 500; }
.info-card a, .info-card p { color: var(--text-soft); font-size: var(--fs-sm); }
.info-card a:hover { color: var(--ink-900); }

/* ---------- MINI CTA ---------- */
.cta-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--forest-900); color: rgba(255,255,255,.72);
  border-radius: var(--r-2xl); padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.8rem, 4vw, 3.4rem);
}
.cta-mini h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-mini p { color: rgba(255,255,255,.68); margin-top: .5rem; font-size: var(--fs-sm); }
.cta-mini .cta-mini-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- WHATSAPP FLOTTANTE ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  background: #1f7a49; color: #fff; display: grid; place-items: center;
  transition: background .3s var(--ease-out);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: #19653c; }
@media (max-width: 680px) { .wa-float { width: 46px; height: 46px; bottom: 1.1rem; left: 1.1rem; } }

/* ============================================================================
   PANNELLI SCURI CHE OSPITANO LE GRAFICHE ANIMATE
   Piatti, senza griglie ne' bagliori: solo verde foresta profondo.
   ============================================================================ */
.stage {
  position: relative; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate;
  background: var(--forest-900); color: rgba(255,255,255,.72);
}
.stage::before, .stage::after { content: none; }
.stage > * { position: relative; z-index: 1; }
.stage h1, .stage h2, .stage h3, .stage h4 { color: #fff; }
.stage .text-soft { color: rgba(255,255,255,.62); }
.stage .text-muted { color: rgba(255,255,255,.45); }
.stage-pad { padding: clamp(1.8rem, 4vw, 3.4rem); }

.gfx-badge {
  width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  background: var(--forest-900); padding: 11px; box-shadow: none;
}
.gfx-badge.lg { width: 66px; height: 66px; border-radius: var(--r-md); padding: 14px; }
.gfx-stage { aspect-ratio: 1/1; display: grid; place-items: center; padding: 9%; }
.gfx-stage.wide { aspect-ratio: 16/11; }
.gfx-mini { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 2px; }
.gfx-row { display: grid; grid-auto-flow: column; gap: 1rem; }
.gfx-tile { display: grid; place-items: center; padding: 1.2rem; border-radius: var(--r-lg); background: var(--forest-900); box-shadow: none; width: 112px; height: 112px; }

/* utility grafiche: rese neutre */
.neon, .neon-soft { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.glow-lime { filter: none; }
.text-glow { text-shadow: none; }
.accent-line { width: 40px; height: 1px; border-radius: 0; background: var(--green-400); }

/* scheda servizio con testata grafica */
.svc-lab { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-lab .svc-stage { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; background: var(--forest-900); }
.svc-lab .svc-stage::after { content: none; }
.svc-lab .svc-stage .gfx, .svc-lab .svc-stage[data-gfx] { width: 128px; height: 128px; position: relative; z-index: 1; }
.svc-lab .svc-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.svc-lab .svc-body p { margin-top: .5rem; }
.svc-lab .svc-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.svc-lab .svc-foot .price { margin-left: auto; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-900); }
/* il bottone va sempre a capo, cosi' le schede restano allineate tra loro */
.svc-lab .svc-foot > .btn { flex: 0 0 100%; margin-top: .5rem; }

/* testate dei post */
.post-feature .pf-media.stage { color: rgba(255,255,255,.7); background: var(--forest-900); min-height: 300px; border-radius: 0; }
.post-feature .pf-media.stage .gfx-stage { width: 230px; height: 230px; aspect-ratio: auto; padding: 0; }
.post-card .pc-top.stage { height: 160px; overflow: hidden; background: var(--forest-900); border-radius: 0; }
.post-card .pc-top.stage .gfx-stage { width: 120px; height: 120px; aspect-ratio: auto; padding: 0; }
.post-feature .pf-media.stage .gfx-stage > svg,
.post-card .pc-top.stage .gfx-stage > svg { width: 100%; height: 100%; }

/* listino dentro un pannello scuro */
.stage .price-table .pt-row { border-bottom-color: rgba(255,255,255,.14); }
.stage .price-table .pt-row b { color: #fff; }
.stage .price-table .pt-row small { color: rgba(255,255,255,.6); }
.stage .price-table .pt-price { color: #fff; }

.process .pstep .gfx-badge { margin-bottom: .9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 64em) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .tele-grid, .booking-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.media-left > .split-media { order: 0; }
  .split-media { max-width: 520px; margin-inline: auto; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .pf-media { min-height: 200px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { columns: 2; }
  .review-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1.8rem 1rem; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stats--3 { grid-template-columns: repeat(2, 1fr); }
  .stats--3 .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .services-grid, .tips-grid, .svc-pick, .form-grid, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  /* su telefono il titolo viene prima della foto */
  .hero-visual { order: 0; max-width: 340px; }
  .hero-copy { order: -1; }
  .hero-inner { gap: 2.5rem; }
  .brand-text b { font-size: .98rem; }
  .to-top { display: none; }
  .review-track { grid-template-columns: 1fr; }
  .header-inner { gap: .75rem; }
  .brand-text span { display: none; }
  .page-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .rating-hero .rh-divider { display: none; }
  .cta-mini { flex-direction: column; align-items: flex-start; }
  .gfx-tile { width: 92px; height: 92px; padding: .9rem; }
}

/* i badge testuali non devono mai stirarsi dentro un contenitore a colonna */
.pc-body > .badge, .tip-body > .badge, .pf-body > .badge, .card > .badge,
.svc-body > .badge, .service-card > .badge, .svc-detail > .badge,
.hero-copy > .badge, .page-hero-inner > .badge, .prose > .badge,
.split > div > .badge, .wiz-step > .badge { align-self: flex-start; }
