/* Honeycomb School — foglio di stile del sito (Design 2.0). La versione con il design originale è nel tag git design-v1. */
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/cormorant-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/cormorant-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/cormorant-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/cormorant-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ==========================================================================
   Honeycomb School — Design 2.0
   Stessa identità (crema, blu dei serramenti, miele, Cormorant + Inter, bottoni esagonali),
   foto protagoniste, tipografia più decisa, contrasti leggibili, esagono come segno preciso.
   ========================================================================== */

:root {
  /* colori */
  --ink: #2E434B;          /* titoli */
  --blue-deep: #4A6670;    /* blu Honeycomb: bottoni, link */
  --text: #46606B;         /* testo */
  --muted: #5E7883;        /* testo secondario su crema */
  --blue-soft: #8BA3B3;    /* solo decorazione */
  --blue-pale: #C5D3DB;
  --blue-wash: #EEF2F4;
  --band: #3E5761;         /* fasce scure */
  --band-label: #E8D9A8;   /* etichette su fascia scura */
  --honey: #C9A227;        /* forme e linee, mai testo piccolo */
  --honey-soft: #D4B85C;
  --honey-ink: #8A6A12;    /* miele per testi su crema */
  --cream: #FDFCFA;
  --sand: #F6F2EA;
  --stone: #E8E4DD;
  /* compatibilità con gli stili in linea delle pagine */
  --blue-text: var(--text);
  --cream-warm: var(--sand);
  --bg-alt: #F2EDE4;

  --font-serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 6.5vw, 96px);
  --section-y: clamp(64px, 8vw, 112px);
  --max: 1248px;
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--blue-deep); }
main { display: block; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 3000; padding: 0.75rem 1.25rem; background: var(--blue-deep); color: #fff; font-size: 0.875rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible, .gallery-item:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 5.25rem); line-height: 1.03; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; color: var(--honey-ink); }
h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.45rem, 2vw, 1.875rem); line-height: 1.2; }

/* Etichetta con esagono */
.section-label, .hero-tag { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 1.25rem; }
.section-label::before, .hero-tag-bar { content: ''; flex-shrink: 0; width: 12px; height: 10px; background: var(--honey); clip-path: var(--hex); }
.hero-tag { background: none; padding: 0; margin: 0; box-shadow: none; backdrop-filter: none; }
.hero-tag-bar { display: inline-block; margin: 0; }

/* --------------------------------------------------------------------------
   Bottoni: esagono con punte ad angolo fisso
   -------------------------------------------------------------------------- */
.btn-primary, .nav-cta, .btn-primary-light {
  --tip: 16px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 56px; padding: 0 2.4rem; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.2; text-decoration: none; text-align: center;
  color: #fff; background-color: var(--blue-deep);
  background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
  transition: background-size 0.55s cubic-bezier(0.7, 0, 0.2, 1), color 0.3s ease;
}
.btn-primary:hover, .nav-cta:hover { background-size: 100% 100%; color: #fff; }
.btn-primary svg, .btn-primary-light svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s ease, color 0.3s ease; }
.btn-primary:hover svg { transform: translateX(3px); color: var(--honey); }
.nav-cta { --tip: 13px; min-height: 44px; padding: 0 1.75rem; font-size: 0.8125rem; }
.btn-primary-light, .page-section--deep .btn-primary, .bilingual-section .btn-primary { background-color: var(--honey); background-image: linear-gradient(#fff, #fff); color: var(--ink); font-weight: 600; }
.btn-primary-light:hover, .page-section--deep .btn-primary:hover, .bilingual-section .btn-primary:hover { background-size: 100% 100%; color: var(--ink); }
.btn-primary-full { min-width: 220px; }
.btn-primary[disabled], button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }

.btn-secondary, .btn-secondary-light { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; transition: color 0.3s ease; }
.btn-secondary .hex-icon, .btn-secondary-light .hex-icon { position: relative; width: 40px; height: 35px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn-secondary .hex-icon svg.hex-shape, .btn-secondary-light .hex-icon svg.hex-shape { display: none; }
.btn-secondary .hex-icon::before, .btn-secondary-light .hex-icon::before { content: ''; position: absolute; inset: 0; background: var(--blue-pale); clip-path: var(--hex); transition: background 0.3s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn-secondary .hex-icon::after, .btn-secondary-light .hex-icon::after { content: ''; position: absolute; inset: 1px; background: var(--cream); clip-path: var(--hex); transition: background 0.3s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn-secondary .hex-icon svg.arrow, .btn-secondary-light .hex-icon svg.arrow { position: relative; z-index: 1; width: 14px; height: 14px; stroke: var(--blue-deep); transition: transform 0.3s ease, stroke 0.3s ease; }
.btn-secondary:hover { color: var(--honey-ink); }
.btn-secondary:hover .hex-icon::before, .btn-secondary:hover .hex-icon::after { background: var(--honey); transform: rotate(60deg); }
.btn-secondary:hover .hex-icon svg.arrow { stroke: var(--ink); transform: translateX(2px); }
.btn-secondary-light { color: #fff; }
.btn-secondary-light .hex-icon::after { background: var(--band); }

/* Link sottolineato in miele */
.link-underline { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--honey); padding-bottom: 4px; transition: color 0.3s ease; }
.link-underline:hover { color: var(--honey-ink); }

/* --------------------------------------------------------------------------
   Navigazione
   -------------------------------------------------------------------------- */
nav#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 88px; padding: 0 clamp(20px, 4.5vw, 64px); display: flex; align-items: center; gap: 2rem; background: rgba(253, 252, 250, 0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stone); transition: height 0.3s ease, box-shadow 0.3s ease; }
nav#navbar.scrolled { height: 72px; box-shadow: 0 6px 24px rgba(46, 67, 75, 0.06); }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-mark { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); list-style: none; margin: 0 auto; }
.nav-links a { position: relative; text-decoration: none; color: var(--muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; padding: 0.4rem 0; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--honey); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; }
.lang-switcher a { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; color: var(--muted); transition: color 0.3s ease; }
.lang-switcher a.active, .lang-switcher a:hover { color: var(--ink); }
.lang-switcher .separator { width: 1px; height: 12px; background: var(--blue-pale); }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; background: none; border: 0; cursor: pointer; z-index: 101; }
.mobile-menu-toggle span { display: block; height: 1.6px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-menu-toggle span:nth-child(3) { width: 65%; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { width: 100%; transform: translateY(-7.6px) rotate(-45deg); }
.mobile-menu-overlay { position: fixed; inset: 0; z-index: 99; display: none; flex-direction: column; padding: 96px var(--gutter) 2rem; overflow-y: auto; background: var(--cream); }
.mobile-menu-overlay.active { display: flex; }
.mobile-menu-lang { display: flex; justify-content: flex-start; padding-bottom: 1.25rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--stone); }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; margin-bottom: 2rem; }
.mobile-menu-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--stone); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.mobile-menu-links a.is-active { color: var(--honey-ink); }
.mobile-menu-footer { margin-top: auto; }
.mobile-menu-footer .nav-cta { width: 100%; min-height: 52px; }

/* --------------------------------------------------------------------------
   Hero: testo a sinistra, foto nitida a destra con angolo a 60°
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; padding: calc(88px + clamp(2.5rem, 4.5vw, 4.5rem)) clamp(20px, 4.5vw, 64px) clamp(3rem, 4.5vw, 4.5rem) var(--gutter); background: var(--cream); }
.hero-content { order: 1; display: flex; flex-direction: column; gap: 1.75rem; max-width: 620px; }
.hero-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero h1 { margin: 0; }
.hero-body { font-size: clamp(1.05rem, 1.25vw, 1.1875rem); line-height: 1.7; color: var(--text); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; margin-top: 0.5rem; }
.hero-image { order: 2; position: relative; height: clamp(360px, 42vw, 624px); }
.hero-image picture { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--cut-x, 104px)) 0, 100% var(--cut-y, 60px), 100% 100%, 0 100%); }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-badge { z-index: 2; position: absolute; left: -56px; bottom: 56px; width: 168px; height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream); clip-path: var(--hex); }
.hero-badge-num { font-family: var(--font-serif); font-size: 2.9rem; font-weight: 500; line-height: 1; color: var(--ink); }
.hero-badge-label { margin-top: 0.4rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--honey-ink); }
.p-home .hero h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); }
.hero--compact .hero-image { height: clamp(300px, 32vw, 460px); }
.hero--compact h1 { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--blue-pale); }

/* Fascia dei fatti chiave */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--gutter); background: var(--sand); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.facts-item { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; padding: 2.25rem 2rem; border-left: 1px solid var(--stone); }
.facts-item:first-child { border-left: 0; padding-left: 0; }
.facts-value { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.2vw, 2.125rem); font-weight: 500; line-height: 1.15; color: var(--ink); }
.facts-label { font-size: 0.875rem; line-height: 1.5; color: var(--text); }
.facts-label a { color: var(--ink); }

/* --------------------------------------------------------------------------
   Sezioni generiche
   -------------------------------------------------------------------------- */
.page-section { padding: var(--section-y) var(--gutter); background: var(--cream); }
.page-section + .page-section:not(.page-section--deep):not([style]) { padding-top: 0; }
.page-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.page-inner.full { grid-template-columns: minmax(0, 1fr); max-width: 980px; gap: 2rem; }
.page-inner:has(> h2) { display: block; max-width: 980px; }
.page-section h2 { margin-bottom: 1.25rem; }
.page-section p { font-size: 1.0625rem; line-height: 1.8; color: var(--text); margin-bottom: 1.1rem; max-width: 68ch; }
.page-section--deep { background: var(--band); }
.page-section--deep .section-label { color: var(--band-label); }
.page-section--deep .section-label::before { background: var(--honey); }
.page-section--deep h2, .page-section--deep h3, .page-section--deep .subcard h3 { color: #fff; }
.page-section--deep p { color: rgba(255, 255, 255, 0.84); }
.subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.subcard h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.subcard p { font-size: 1rem; }
.soft-box { padding: 2.5rem; background: var(--sand); border: 1px solid var(--stone); }
.soft-box h3 { font-size: 1.75rem; margin-bottom: 0.9rem; }
.soft-box p { font-size: 1rem; }
.soft-box ul { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.soft-box li { position: relative; padding-left: 1.6rem; font-size: 0.975rem; line-height: 1.6; color: var(--text); }
.soft-box li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 9px; background: var(--honey); clip-path: var(--hex); }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--honey-ink); }
.pill-dot { width: 10px; height: 9px; background: var(--honey); clip-path: var(--hex); }
.divider-line { width: 40px; height: 1px; background: var(--honey); margin: 2rem 0; }

/* Foto e galleria */
.gallery-item { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.gallery-item picture, .gallery-item img, .intro-visual picture, .intro-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.gallery-single { margin: 2.5rem 0; }
.spazi-gallery { gap: 1rem !important; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.intro-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; padding: var(--section-y) var(--gutter); background: var(--cream); }
.intro-media { position: relative; order: -1; margin: 0 2rem 3rem 0; }
.intro-visual { position: relative; height: clamp(320px, 33vw, 480px); cursor: zoom-in; }
.intro-inset { position: absolute; z-index: 2; right: -2rem; bottom: -3rem; width: 42%; aspect-ratio: 4 / 3; border: 8px solid var(--cream); }
.intro-visual::before { content: ''; position: absolute; top: -24px; left: -24px; width: 42%; height: 38%; border-top: 1px solid var(--honey); border-left: 1px solid var(--honey); pointer-events: none; }
.intro-text { display: flex; flex-direction: column; gap: 1.25rem; max-width: 600px; }
.intro-text h2 { margin-bottom: 0.25rem; }
.intro-text p { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }

.usp-section { padding: var(--section-y) var(--gutter); background: var(--sand); }
.usp-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.usp-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; flex-wrap: wrap; }
.usp-header .section-label { margin-bottom: 1rem; }
.usp-header p { max-width: 420px; font-size: 1rem; line-height: 1.7; color: var(--text); }
.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.usp-item { display: flex; flex-direction: column; gap: 1.1rem; padding: 2.5rem 2.25rem; background: var(--cream); border: 1px solid var(--stone); }
.usp-icon { width: 56px; height: 49px; display: flex; align-items: center; justify-content: center; background: var(--honey); clip-path: var(--hex); font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.usp-icon--small { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.usp-icon svg { width: 22px; height: 22px; }
.usp-item h3 { margin: 0; }
.usp-item p { font-size: 1rem; line-height: 1.7; color: var(--text); }
.usp-divider { display: none; }

.percorso-section { padding: var(--section-y) var(--gutter); background: var(--cream); }
.percorso-header { max-width: var(--max); margin: 0 auto 3.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.percorso-list { --photo-h: 200px; position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.percorso-list::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: calc(var(--photo-h, 236px) + 43px); height: 1px; background: var(--honey); }
.percorso-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.percorso-photo { width: 100%; height: var(--photo-h, 236px); overflow: hidden; }
.percorso-photo picture, .percorso-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.percorso-node { width: 44px; height: 38px; margin-top: 0.4rem; background: var(--honey); clip-path: var(--hex); }
.percorso-age { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--ink); }
.percorso-age span { font-size: 1.25rem; color: var(--muted); }
.percorso-content h3 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.percorso-content p { font-size: 0.95rem; line-height: 1.7; color: var(--text); max-width: 300px; margin: 0 auto; }
.percorso-content .percorso-group { margin-bottom: 0.35rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--honey-ink); }

.bilingual-section { padding: var(--section-y) var(--gutter); background: var(--band); }
.bilingual-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.bilingual-langs { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); flex-wrap: wrap; }
.lang-name { font-family: var(--font-serif); font-size: clamp(3.25rem, 7vw, 6.5rem); font-weight: 400; line-height: 0.95; color: #fff; }
.lang-name--en { font-style: italic; }
.lang-desc { margin-top: 0.9rem; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--band-label); }
.lang-divider { width: 48px; height: 42px; flex-shrink: 0; background: var(--honey); clip-path: var(--hex); font-size: 0; color: transparent; }
.bilingual-text { display: flex; flex-direction: column; gap: 1.25rem; }
.bilingual-text .section-label { color: var(--band-label); margin-bottom: 0; }
.bilingual-quote { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.25; color: #fff; }
.bilingual-text p { font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, 0.84); }

.latest-posts { padding: var(--section-y) var(--gutter); background: var(--cream); }
.latest-posts-inner { max-width: var(--max); margin: 0 auto; }
.latest-posts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.latest-posts-head .section-label { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.blog-section { padding: var(--section-y) var(--gutter); background: var(--cream); }
.blog-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.blog-card { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.blog-card-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.blog-card-image picture, .blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body { display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.blog-card-meta { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--honey-ink); }
.blog-card h2, .blog-card h3 { font-size: 1.7rem; line-height: 1.2; }
.blog-card h2 a, .blog-card h3 a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--honey-ink); }
.blog-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.blog-card .btn-secondary { margin-top: auto; padding-top: 0.25rem; }
.blog-related-title { max-width: var(--max); margin: 0 auto 2.5rem; }
.blog-section--related { background: var(--sand); }

.post { padding: calc(88px + 4rem) var(--gutter) var(--section-y); background: var(--cream); }
.post-header { max-width: 920px; margin: 0 auto 2.5rem; }
.post-header h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; margin-bottom: 1.25rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; font-size: 0.8125rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.post-meta { font-size: 0.875rem; color: var(--muted); }
.post-cover { max-width: 1100px; margin: 0 auto 3.5rem; aspect-ratio: 2 / 1; overflow: hidden; }
.post-cover picture, .post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, calc(100% - 90px) 0, 100% 52px, 100% 100%, 0 100%); }
.post-layout { max-width: 840px; margin: 0 auto; }
.post-summary { padding: 2rem 2.25rem; margin-bottom: 3rem; background: var(--sand); border: 1px solid var(--stone); }
.post-summary h2 { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 1rem; }
.post-summary h2::before { content: ''; width: 12px; height: 10px; background: var(--honey); clip-path: var(--hex); }
.post-summary ul { list-style: none; display: grid; gap: 0.75rem; }
.post-summary li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.post-summary li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 9px; height: 8px; background: var(--honey); clip-path: var(--hex); }
.post-body { font-size: 1.0625rem; line-height: 1.85; color: var(--text); }
.post-body > * + * { margin-top: 1.2rem; }
.post-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); margin-top: 3rem; }
.post-body h3 { font-size: 1.45rem; margin-top: 2rem; }
.post-body a { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 3px; }
.post-body a:hover { color: var(--honey-ink); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.post-body li::marker { color: var(--honey-ink); }
.post-body blockquote { border-left: 2px solid var(--honey); padding: 0.25rem 0 0.25rem 1.5rem; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
/* Tabelle negli articoli: celle che vanno a capo in modo uniforme; le tabelle larghe escono dalla colonna di testo */
.post-body .table-wrap { margin: 2.25rem 0; }
.post-body .table-wrap--wide { margin-inline: calc((100% - min(1040px, 100vw - 2 * var(--gutter))) / 2); }
.post-body table { display: table; width: 100%; margin: 0; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.post-body thead th { padding: 0 1.25rem 0.85rem 0; vertical-align: bottom; text-align: left; white-space: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--honey); }
.post-body tbody td, .post-body tbody th { padding: 1rem 1.25rem 1rem 0; vertical-align: top; text-align: left; white-space: normal; color: var(--text); border-bottom: 1px solid var(--stone); }
.post-body tbody td:first-child, .post-body tbody th { font-weight: 500; color: var(--ink); }
.post-body thead th:first-child, .post-body tbody td:first-child { min-width: 10.5rem; }
.post-body .table-wrap--wide thead th:first-child, .post-body .table-wrap--wide tbody td:first-child { min-width: 12rem; }
.post-body thead th:last-child, .post-body tbody td:last-child { padding-right: 0; }
.post-body tbody tr:last-child td, .post-body tbody tr:last-child th { border-bottom: 0; }
.post-body td strong { font-weight: 600; }
.post-note { padding: 1.5rem 1.75rem; background: var(--blue-wash); }
.post-note p { margin: 0; font-size: 1rem; color: var(--ink); }
.post-faq { margin-top: 4rem; }
.post-faq > h2, .post-sources > h2, .post-cta h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.post-cta { margin-top: 4rem; padding: 2.75rem; text-align: center; background: var(--sand); border: 1px solid var(--stone); }
.post-cta p { max-width: 520px; margin: 0.75rem auto 2rem; font-size: 1rem; line-height: 1.75; color: var(--text); }
.post-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2rem; }
.post-sources { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--stone); }
.post-sources > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.post-sources ol { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.post-sources li { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.post-sources a { color: var(--text); word-break: break-word; }

/* FAQ */
.faq-section .page-inner { max-width: 980px; }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--stone); }
.faq-list details { border-bottom: 1px solid var(--stone); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex-shrink: 0; font-family: var(--font-sans); font-size: 1.25rem; font-weight: 400; color: var(--honey-ink); transition: transform 0.3s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.5rem; max-width: 68ch; }
.faq-answer p, .page-section .faq-answer p { margin: 0; font-size: 1.0125rem; line-height: 1.8; color: var(--text); }
.faq-answer a { color: var(--blue-deep); }
.faq-split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
.faq-split .faq-list { margin-top: 0; }

/* --------------------------------------------------------------------------
   Tariffe e contatti
   -------------------------------------------------------------------------- */
.page-section.tariff-tables-section { padding-top: 0; }
.tariff-tables-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.tariff-tables-inner > .tariff-note { margin: 0 !important; }
.tariff-card { padding: 2.25rem 2.5rem; background: var(--sand); border: 1px solid var(--stone); }
.tariff-card h3 { font-size: 1.6rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.25rem; }
.tariff-note { font-size: 0.925rem; color: var(--text); }
table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.85rem 0.75rem; text-align: left; vertical-align: top; }
th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--stone); }
tr + tr td { border-top: 1px solid var(--stone); }
td { color: var(--text); }
.tariff-card td:not(:first-child) { white-space: nowrap; }
td strong { color: var(--ink); font-weight: 600; }

.contact-block { padding: 2.5rem; background: var(--sand); border: 1px solid var(--stone); }
.contact-block h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.contact-block p { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-block a { color: var(--ink); }

/* Moduli */
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }
label, .group-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.group-label { display: block; width: 100%; }
input, textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--blue-pale); background: #fff; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); transition: border-color 0.3s ease; }
input:focus, textarea:focus { outline: none; border-color: var(--blue-deep); }
textarea { resize: vertical; min-height: 120px; }
.form-group--checkboxes { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 2rem; border: 0; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 400; font-size: 0.95rem; color: var(--text); cursor: pointer; }
.checkbox-label input { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--blue-deep); }
.privacy-disclaimer { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.privacy-disclaimer.full { grid-column: 1 / -1; }
.privacy-disclaimer a { color: var(--ink); }
.submit-row { grid-column: 1 / -1; margin-top: 0.25rem; }
.field-error { border-color: #a83d3d !important; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Invito alla visita
   -------------------------------------------------------------------------- */
.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--cream); border-top: 1px solid var(--stone); }
.visit-photo { min-height: 560px; overflow: hidden; }
.visit-photo picture, .visit-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visit-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; padding: clamp(3rem, 5.5vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); }
.visit-panel h2 { margin: 0; }
.visit-panel p { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.visit-contacts { list-style: none; align-self: stretch; display: grid; gap: 0.6rem; margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stone); font-size: 0.95rem; color: var(--text); }
.visit-contacts a { color: var(--ink); text-decoration: none; }
.visit-contacts a:hover { color: var(--honey-ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) 2.5rem; background: var(--sand); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand > p { max-width: 300px; font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.footer-col .footer-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; color: var(--text); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-social a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.footer-social a:hover { color: var(--honey-ink); }
.footer-bottom { max-width: var(--max); margin: 3.5rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--stone); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); }
.footer-bottom a, .link-button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-bottom a:hover, .link-button:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Finestre
   -------------------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2rem; background: rgba(46, 67, 75, 0.55); backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-container { position: relative; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: var(--cream); box-shadow: 0 24px 64px rgba(46, 67, 75, 0.25); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 2.25rem 2.5rem 1.25rem; border-bottom: 1px solid var(--stone); }
.modal-header h2 { font-size: 2rem; margin: 0; }
.modal-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.5rem 2.5rem 2rem; }
.modal-body form { margin-top: 0; }
.modal-footer { padding: 1.25rem 2.5rem 2.25rem; border-top: 1px solid var(--stone); }
.modal-footer-actions { display: flex; justify-content: center; }

.image-modal-overlay { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; background: rgba(46, 67, 75, 0.92); backdrop-filter: blur(6px); }
.image-modal-overlay.active { display: flex; }
.image-modal-container { position: relative; max-width: 92vw; max-height: 90vh; }
.image-modal-image { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.image-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: var(--cream); color: var(--ink); font-size: 1.5rem; cursor: pointer; clip-path: var(--hex); }

/* Barra fissa su smartphone */
.mobile-cta { display: none; }

/* Pagine legali e 404 */
.legal-section, .notfound-section { padding: calc(88px + 4rem) var(--gutter) var(--section-y); background: var(--cream); }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-inner h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 0.75rem; }
.legal-inner .updated { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.legal-inner h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.6rem; letter-spacing: 0; }
.legal-inner p, .legal-inner li { font-size: 1rem; line-height: 1.8; color: var(--text); }
.legal-inner p { margin-bottom: 0.9rem; }
.legal-inner ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-inner code { font-size: 0.85em; padding: 0.05em 0.35em; background: var(--sand); border: 1px solid var(--stone); }
.notfound-links { list-style: none; padding: 0 !important; margin: 1.5rem 0 2.5rem; display: grid; gap: 0.6rem; }
.notfound-links a { font-family: var(--font-serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.notfound-links a:hover { color: var(--honey-ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav-links, .nav-right .lang-switcher { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-right { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-item:nth-child(n+3) { border-top: 1px solid var(--stone); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero, .intro-section, .page-inner, .bilingual-inner, .visit, .faq-split { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: calc(88px + 2rem); padding-right: var(--gutter); }
  .hero-image { order: 0; height: clamp(280px, 60vw, 460px); margin-right: calc(var(--gutter) * -1); }
  .hero-content { max-width: none; }
  .hero-badge { left: 16px; bottom: -40px; width: 112px; height: 98px; }
  .hero-badge-num { font-size: 2rem; }
  .p-home .hero-content { padding-top: 2.5rem; }
  .intro-media { order: 0; margin: 0 0.5rem 2rem 0; }
  .intro-inset { right: -0.5rem; bottom: -2rem; width: 44%; border-width: 6px; }
  .usp-grid, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .percorso-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.5rem; }
  .percorso-list::before { display: none; }
  .visit-photo { min-height: 320px; }
  .subgrid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 768px) {
  nav#navbar { height: 64px; }
  nav#navbar.scrolled { height: 64px; }
  .logo-mark { height: 30px; }
  .nav-right .nav-cta { display: none; }
  .hero { padding-top: 64px; padding-left: 0; padding-right: 0; gap: 0; }
  .hero-image { margin: 0; height: 300px; --cut-x: 56px; --cut-y: 32px; }
  .hero-content { padding: 2.25rem var(--gutter) 0; gap: 1.25rem; }
  .p-home .hero-content { padding-top: 3.75rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero-ctas .btn-primary { width: 100%; }
  .hero-ctas .btn-secondary { justify-content: center; }
  .facts { padding: 0 var(--gutter); }
  .facts-item { padding: 1.4rem 1rem; }
  .facts-item:nth-child(odd) { padding-left: 0; }
  .facts-value { font-size: 1.45rem; }
  .facts-label { font-size: 0.8125rem; }
  .lang-name { font-size: 2.6rem; }
  .lang-divider { width: 26px; height: 23px; }
  .lang-desc { display: none; }
  .post { padding-top: calc(64px + 2.5rem); }
  .post-cover { aspect-ratio: 4 / 3; }
  .post-cover img { clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 32px, 100% 100%, 0 100%); }
  .post-summary { padding: 1.5rem; }
  .post-cta { padding: 2rem 1.25rem; }
  .legal-section, .notfound-section { padding-top: calc(64px + 2.5rem); }
  form, .modal-body form { grid-template-columns: minmax(0, 1fr); }
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal-container { max-height: 100dvh; max-width: none; }
  .modal-header, .modal-body, .modal-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  input, textarea { font-size: 16px; }
  .tariff-card { padding: 1.5rem 1.25rem; }
  table { display: block; overflow-x: auto; font-size: 0.875rem; }
  th, td { padding: 0.7rem 0.5rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .footer-bottom { flex-direction: column; }
  .faq-list summary { font-size: 1.25rem; }
  /* barra fissa in basso */
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(253, 252, 250, 0.97); backdrop-filter: blur(10px); border-top: 1px solid var(--stone); }
  .mobile-cta .btn-primary { flex: 1; min-height: 50px; padding: 0 1.25rem; }
  .mobile-cta-call { width: 56px; height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--stone); clip-path: var(--hex); }
  .mobile-cta-call svg { width: 20px; height: 20px; }
  body.has-mobile-cta { padding-bottom: 76px; }
  body.has-mobile-cta .consent-banner { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .usp-item, .soft-box, .contact-block { padding: 1.75rem 1.4rem; }
  .percorso-photo { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Design 2.1 — motivo a nido d'ape, dettagli al passaggio del mouse, animazioni
   ========================================================================== */
:root {
  --comb-honey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='55.43' viewBox='0 0 96 55.43'%3E%3Cpath d='M0 27.71 16 0h32l16 27.71-16 27.72H16zM64 27.71h32' fill='none' stroke='%23C9A227' stroke-width='1'/%3E%3C/svg%3E");
  --comb-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='55.43' viewBox='0 0 96 55.43'%3E%3Cpath d='M0 27.71 16 0h32l16 27.71-16 27.72H16zM64 27.71h32' fill='none' stroke='%23FFFFFF' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-curtain: cubic-bezier(0.7, 0, 0.2, 1);
}

/* Nido d'ape dietro le foto principali */
.hero-image::before { content: ''; position: absolute; z-index: 0; top: -44px; right: -20px; width: 62%; height: 72%; background: var(--comb-honey) repeat; background-size: 96px 55.43px; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse at top right, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at top right, #000 15%, transparent 70%); pointer-events: none; }
.visit-panel { position: relative; overflow: hidden; }
.visit-panel::before { content: ''; position: absolute; top: 0; right: 0; width: 260px; height: 200px; background: var(--comb-honey) repeat; background-size: 96px 55.43px; opacity: 0.35; -webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%); pointer-events: none; }
.visit-panel > * { position: relative; }

/* Nido d'ape nelle fasce scure */
.bilingual-section, .page-section--deep { position: relative; overflow: hidden; }
.bilingual-section::before, .page-section--deep::before { content: ''; position: absolute; inset: 0; background: var(--comb-light) repeat; background-size: 120px 69.28px; -webkit-mask-image: radial-gradient(ellipse 55% 90% at 12% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 55% 90% at 12% 50%, #000, transparent 75%); pointer-events: none; }
.page-section--deep::before { -webkit-mask-image: radial-gradient(ellipse 50% 90% at 92% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 50% 90% at 92% 40%, #000, transparent 75%); }
.bilingual-inner, .page-section--deep > .page-inner { position: relative; z-index: 1; }

/* Schede che si sollevano */
.usp-item, .soft-box, .tariff-card, .contact-block { position: relative; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.usp-item::after, .tariff-card::after { content: ''; position: absolute; left: -1px; top: -1px; width: 0; height: 2px; background: var(--honey); transition: width 0.7s var(--ease-out); }
.usp-item:hover, .tariff-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(46, 67, 75, 0.09); }
.usp-item:hover::after, .tariff-card:hover::after { width: calc(100% + 2px); }
.blog-card h2 a, .blog-card h3 a { background: linear-gradient(var(--honey), var(--honey)) no-repeat 0 100% / 0 1px; transition: background-size 0.5s var(--ease-out), color 0.3s ease; }
.blog-card:hover h2 a, .blog-card:hover h3 a { background-size: 100% 1px; }
.percorso-photo img, .visit-photo img { transition: transform 1.2s var(--ease-out); }
.percorso-item:hover .percorso-photo img { transform: scale(1.04); }

/* Barra di navigazione: si nasconde scorrendo verso il basso, torna verso l'alto */
nav#navbar { transition: transform 0.45s var(--ease-out), height 0.3s ease, box-shadow 0.3s ease; }
nav#navbar.nav-hidden { transform: translateY(-100%); }

/* Animazioni: attive solo con html.motion (impostata se l'utente non ha chiesto meno movimento) */
@media (prefers-reduced-motion: no-preference) {
  .motion .hero-content > * { animation: hc-rise 0.9s var(--ease-out) both; }
  .motion .hero-content > :nth-child(1) { animation-delay: 0.05s; }
  .motion .hero-content > :nth-child(2) { animation-delay: 0.14s; }
  .motion .hero-content > :nth-child(3) { animation-delay: 0.23s; }
  .motion .hero-content > :nth-child(4) { animation-delay: 0.36s; }
  .motion .hero-content > :nth-child(5) { animation-delay: 0.48s; }
  .motion .hero-content > :nth-child(6) { animation-delay: 0.6s; }
  .motion .hero-image picture { animation: hc-wipe 1.3s var(--ease-curtain) both 0.15s; }
  .motion .hero-image img { animation: hc-settle 2.4s var(--ease-out) both 0.15s; }
  .motion .hero-image::before { animation: hc-fade-comb 1.8s ease both 0.9s; }
  .motion .hero-badge { animation: hc-pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25) both 1.05s; }
  .motion .mobile-cta { animation: hc-up 0.7s var(--ease-out) both 1.2s; }

  .motion .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s ease, translate 1s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
  .motion .reveal.in { opacity: 1; translate: none; }
  .motion .reveal-img { background: transparent; }
  .motion .reveal-img > picture { display: block; height: 100%; clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--ease-curtain); transition-delay: calc(var(--i, 0) * 120ms); }
  .motion .reveal-img img { transform: scale(1.12); transition: transform 1.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
  .motion .reveal-img.in > picture { clip-path: inset(0); }
  .motion .reveal-img.in img { transform: none; }

  .motion .percorso-list::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease-curtain) 0.35s; }
  .motion .percorso-list.in::before { transform: scaleX(1); }
  .motion .percorso-node { transform: scale(0) rotate(-60deg); transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  .motion .percorso-list.in .percorso-node { transform: none; }
  .motion .percorso-list.in .percorso-item:nth-child(1) .percorso-node { transition-delay: 0.55s; }
  .motion .percorso-list.in .percorso-item:nth-child(2) .percorso-node { transition-delay: 0.95s; }
  .motion .percorso-list.in .percorso-item:nth-child(3) .percorso-node { transition-delay: 1.4s; }
  .motion .percorso-list.in .percorso-item:nth-child(4) .percorso-node { transition-delay: 1.85s; }

  .motion .bilingual-langs .lang-item { opacity: 0; transform: translateX(-48px); transition: opacity 1s ease, transform 1.3s var(--ease-out); }
  .motion .bilingual-langs .lang-item:last-child { transform: translateX(48px); transition-delay: 0.3s; }
  .motion .bilingual-langs .lang-divider { opacity: 0; transform: rotate(-180deg) scale(0.3); transition: opacity 0.6s ease 0.2s, transform 1.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.2s; }
  .motion .bilingual-langs.in .lang-item, .motion .bilingual-langs.in .lang-divider { opacity: 1; transform: none; }

  .parallax { translate: 0 var(--py, 0px); scale: 1.08; will-change: translate; }
}
@keyframes hc-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hc-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% var(--cut-y, 60px), 100% 100%, 100% 100%); } to { clip-path: polygon(0 0, calc(100% - var(--cut-x, 104px)) 0, 100% var(--cut-y, 60px), 100% 100%, 0 100%); } }
@keyframes hc-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hc-pop { from { opacity: 0; transform: scale(0.5) rotate(-60deg); } to { opacity: 1; transform: none; } }
@keyframes hc-fade-comb { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes hc-up { from { transform: translateY(100%); } to { transform: none; } }
@media print { .reveal, .reveal-img, .reveal-img > picture { opacity: 1 !important; translate: none !important; clip-path: none !important; } }
@media (max-width: 768px) { .hero-image::before { display: none; } .visit-panel::before { width: 180px; height: 140px; } }

/* Tabelle degli articoli su smartphone: ogni riga diventa una scheda con le etichette delle colonne */
@media (max-width: 768px) {
  .post-body .table-wrap--wide { margin-inline: 0; }
  .post-body .table-wrap table, .post-body .table-wrap tbody, .post-body .table-wrap tr, .post-body .table-wrap td, .post-body .table-wrap tbody th { display: block; width: 100%; }
  .post-body .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-body .table-wrap tr { padding: 1.1rem 1.25rem; background: var(--sand); border: 1px solid var(--stone); }
  .post-body .table-wrap tr + tr { margin-top: 0.75rem; }
  .post-body .table-wrap td, .post-body .table-wrap tbody th { padding: 0.4rem 0; border: 0; font-size: 0.95rem; }
  .post-body .table-wrap td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey-ink); }
  .post-body .table-wrap td:first-child { min-width: 0; padding-top: 0; padding-bottom: 0.55rem; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.25; color: var(--ink); }
  .post-body .table-wrap td:first-child::before { display: none; }
}

@media (max-width: 600px) { .percorso-list { grid-template-columns: minmax(0, 1fr); } }
