/* =========================================================
   PUREZZA VERDE — Sistema di design
   Palette ufficiale (Manual de Marca):
     Principale     #968159  oro
     Complementare  #FFFFFF  bianco
     Complementare  #0C3026  verde profondo
   Tipografia di marca: Juana (display)  →  Fraunces (sostituto web)
                        Times New Roman MT (testi) → usato nei blocchi editoriali
   ========================================================= */

/* ---------- 1. Token ---------- */
:root {
  /* Marca */
  --ink:            #0C3026;   /* verde profondo — colore istituzionale */
  --ink-700:        #123f33;
  --ink-600:        #1a5044;
  --ink-glass:      rgba(12, 48, 38, 0.86);

  --gold:           #968159;   /* oro — colore principale di marca */
  --gold-deep:      #6E5B36;   /* oro scuro — testo piccolo su chiaro (AA) */
  --gold-300:       #C9AE79;
  --gold-200:       #E3D4B4;
  --gold-100:       #F1E8D6;
  --champagne:      #EDE2C9;   /* pulsante chiaro su fondo verde */

  /* Neutri */
  --bg:             #FBFAF7;
  --surface:        #FFFFFF;
  --muted:          #F4F1E9;
  --border:         #E5E0D3;
  --border-strong:  #D3CBB8;

  --text:           #0C3026;
  --text-muted:     #56655D;
  --text-on-dark:   rgba(255, 255, 255, 0.78);

  --eco:            #3F7D5F;   /* verde "check" — AA su chiaro */

  /* Tipografia */
  --font-display: 'Fraunces', 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:   'Times New Roman', Tinos, Times, serif;

  /* Scala tipografica */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.375rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.75rem;

  /* Spazio (ritmo 8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Forma & profondità */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;
  --shadow-xs: 0 1px 2px rgba(12, 48, 38, 0.06);
  --shadow-sm: 0 2px 10px rgba(12, 48, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 48, 38, 0.09);
  --shadow-lg: 0 24px 64px rgba(12, 48, 38, 0.18);
  --shadow-cta: 0 8px 24px rgba(12, 48, 38, 0.24);

  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-200); color: var(--ink); }

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -160%);
  z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
/* Regola globale: ogni sezione è centrata orizzontalmente. */
.section { width: 100%; padding-inline: var(--s-5); }
.container { width: 100%; max-width: 1120px; margin-inline: auto; }
.container--narrow { max-width: 760px; margin-inline: auto; }
.container--mid { max-width: 980px; margin-inline: auto; }

.pad-y     { padding-block: var(--s-9); }
.pad-y-sm  { padding-block: var(--s-7); }
.bg-muted  { background: var(--muted); }
.bg-white  { background: var(--surface); }
.bg-ink    { background: var(--ink); color: #fff; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Tipografia di sezione ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--on-dark { color: var(--gold-200); }

.section-head { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  margin-top: var(--s-3);
}
.section-head p {
  color: var(--text-muted);
  margin-top: var(--s-4);
  font-size: var(--fs-md);
}
.bg-ink .section-head h2 { color: #fff; }
.bg-ink .section-head p { color: var(--text-on-dark); }

.rule {
  width: 56px; height: 2px; margin: var(--s-5) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- 5. Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex-shrink: 0; white-space: nowrap;
  height: 52px; padding-inline: 30px;
  border-radius: var(--r-full);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--ink-600); box-shadow: 0 12px 30px rgba(12, 48, 38, 0.3); }

.btn-gold { background: var(--champagne); color: var(--ink); box-shadow: 0 8px 24px rgba(12, 48, 38, 0.28); }
.btn-gold:hover { background: #F7EFDD; }

.btn-outline { border: 1.5px solid var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #fff; background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }

.btn-sm { height: 44px; padding-inline: 22px; font-size: var(--fs-xs); }
.btn-lg { height: 58px; padding-inline: 38px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.booking-card .btn-block { height: 50px; margin-top: 3px; }

.link-gold {
  color: var(--gold-deep); font-weight: 600; font-size: var(--fs-sm);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
.link-gold:hover { border-color: var(--gold); }

/* ---------- 6. Topbar ---------- */
.topbar {
  background: var(--ink); color: #fff;
  font-size: var(--fs-xs);
  padding: 9px var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  max-width: 1120px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.topbar-hours { color: rgba(255, 255, 255, 0.66); font-weight: 300; display: inline-flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; align-items: center; gap: var(--s-5); }
.topbar-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: #fff; }
.topbar-phone:hover { color: var(--gold-200); }
.topbar .icon { width: 14px; height: 14px; color: var(--gold-300); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, 0.1); border-radius: var(--r-full); padding: 3px; }
.lang-btn {
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65); transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { background: var(--champagne); color: var(--ink); }

/* ---------- 7. Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-inline: var(--s-5);
  transition: box-shadow 0.25s var(--ease);
}
.navbar.is-stuck { box-shadow: 0 6px 24px rgba(12, 48, 38, 0.08); }
.nav-inner {
  max-width: 1120px; margin-inline: auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}

/* Marchio: isotipo originale del manuale + wordmark in Times New Roman MT.
   Non ridisegnare il logo e non cambiare il carattere del wordmark. */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: 46px; }
.brand-name {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem;
  letter-spacing: 0.005em; color: var(--ink); line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: var(--s-5); }
.nav-link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
  padding: 6px 0; position: relative; transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: var(--s-3); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-md);
  align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--ink);
}
.nav-toggle:hover { background: var(--muted); }

.mobile-panel {
  display: none; background: var(--surface); border-bottom: 1px solid var(--border);
  padding: var(--s-4) var(--s-5) var(--s-6);
  box-shadow: var(--shadow-md);
}
.mobile-panel.is-open { display: block; animation: slideDown 0.25s var(--ease); }
.mobile-panel-inner { max-width: 1120px; margin-inline: auto; display: flex; flex-direction: column; gap: 2px; }
.mobile-panel .nav-link { font-size: var(--fs-md); padding: 13px 0; border-bottom: 1px solid var(--border); }
.mobile-panel .nav-link::after { display: none; }
.mobile-panel .btn { margin-top: var(--s-4); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
/* Foto di sfondo opzionale: basta salvare la foto come assets/hero.jpg
   e cambiare --hero-photo in url("../assets/hero.jpg").
   Senza foto resta il fondo verde di marca con il pattern a foglie. */
.hero {
  /* ⚠️ Foto segnaposto (Unsplash). Sostituiscila con una foto vera del team:
     salvala come assets/hero.jpg e scrivi url("../assets/hero.jpg"). */
  --hero-photo: none; /* la foto esterna si carica solo con il consenso (vedi sotto) */
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background-image: var(--hero-photo);
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(12, 48, 38, 0.96) 0%,
    rgba(12, 48, 38, 0.90) 34%,
    rgba(12, 48, 38, 0.72) 62%,
    rgba(12, 48, 38, 0.48) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../assets/patron-repeticion.png");
  background-size: 330px;
  opacity: 0.10;
  mask-image: radial-gradient(90% 80% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 30%, #000 0%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 129, 89, 0.34) 0%, transparent 66%);
  filter: blur(10px); pointer-events: none;
}
.hero-glow--a { top: -180px; right: -80px; }
.hero-glow--b { bottom: -260px; left: -140px; width: 460px; height: 460px; opacity: 0.7; }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 440px; gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-8);
  min-height: 600px;
}

.hero-copy { max-width: 560px; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(237, 226, 201, 0.35);
  color: #fff;
  border-radius: var(--r-full); padding: 6px 14px;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.trust-pill .icon { width: 14px; height: 14px; color: var(--gold-300); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero-sub {
  color: var(--text-on-dark); margin-top: var(--s-4); max-width: 30em;
  font-size: var(--fs-md); line-height: 1.7;
}
.hero-checklist { display: flex; flex-direction: column; gap: 11px; margin-top: var(--s-5); }
.hero-checklist li { display: flex; align-items: flex-start; gap: 11px; color: rgba(255, 255, 255, 0.9); font-size: var(--fs-sm); }
.hero-checklist .icon { width: 19px; height: 19px; color: var(--gold-300); flex-shrink: 0; margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Card preventivo (glassmorphism) */
.booking-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.booking-card::before {
  content: ""; position: absolute; inset-inline: 26px; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: var(--r-full);
}
.booking-card h2 { font-size: 1.375rem; line-height: 1.2; }
.booking-sub { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 6px; }

.form-grid { display: grid; gap: 11px; margin-top: var(--s-4); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  height: 46px; padding: 0 14px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--text);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356655D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface); border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(150, 129, 89, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA59E; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #B3261E; background: #FDF4F3; }
.field-error { font-size: var(--fs-xs); color: #B3261E; display: none; }
.field[data-invalid="true"] .field-error { display: block; }

.form-note {
  display: flex; align-items: flex-start; justify-content: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: var(--s-3); font-weight: 300;
}
.form-note .icon { width: 14px; height: 14px; color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

.form-success {
  display: none; margin-top: var(--s-4);
  background: #EEF6F1; border: 1px solid #CDE5D8; color: #1F5B3F;
  border-radius: var(--r-md); padding: var(--s-4); font-size: var(--fs-sm); line-height: 1.6;
}
.form-success.is-visible { display: block; animation: fadeUp 0.4s var(--ease); }
.form-success a { color: var(--eco); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- 9. Striscia garanzie ---------- */
.guarantee-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: var(--s-5); }
.guarantee-inner {
  max-width: 1120px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--s-4) var(--s-7);
}
.guarantee-label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}
.guarantee-item { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.guarantee-item .icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ---------- 10. Statistiche ---------- */
.stats { background: var(--ink); position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/patron-repeticion.png"); background-size: 300px; opacity: 0.08;
}
.stats-inner {
  position: relative; max-width: 1120px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  padding-block: var(--s-8); text-align: center;
}
.stat { padding-inline: var(--s-3); border-right: 1px solid rgba(255, 255, 255, 0.14); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3rem);
  color: var(--gold-200); line-height: 1; letter-spacing: -0.02em;
}
.stat-label { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-sm); margin-top: 10px; }

/* ---------- 11. Chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
.about-visual { position: relative; }
.about-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink);
  box-shadow: var(--shadow-md);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 48, 38, 0.05) 0%, rgba(12, 48, 38, 0.35) 100%);
}
.about-badge {
  position: absolute; left: -18px; bottom: -20px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 13px; max-width: 265px;
}
.about-badge .icon { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.about-badge-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); line-height: 1.2; }
.about-badge-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

.about-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.1vw, 2.6rem); margin-top: var(--s-3); }
.about-copy > p { color: var(--text-muted); margin-top: var(--s-4); line-height: 1.75; }
.feature-list { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.feature { display: flex; align-items: flex-start; gap: var(--s-3); }
.feature .icon { width: 21px; height: 21px; color: var(--eco); flex-shrink: 0; margin-top: 3px; }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); }
.feature-desc { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; line-height: 1.6; }

/* ---------- 12. Servizi ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r-lg); padding: var(--s-6);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--gold); }
.service-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  background: var(--gold-100); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--s-5);
}
.service-icon .icon { width: 25px; height: 25px; }
.service-card h3 { font-size: var(--fs-md); }
.service-card p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.65; flex-grow: 1; }
.service-price {
  font-size: var(--fs-sm); font-weight: 600; color: var(--gold-deep);
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border);
}
.services-cta { text-align: center; margin-top: var(--s-7); }

/* ---------- 13. Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 17%; right: 17%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 7px, transparent 7px 15px);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ink); color: var(--gold-200);
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--s-5);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl);
  box-shadow: 0 0 0 8px var(--bg), 0 8px 22px rgba(12, 48, 38, 0.18);
}
.bg-muted .step-num { box-shadow: 0 0 0 8px var(--muted), 0 8px 22px rgba(12, 48, 38, 0.18); }
.step h3 { font-size: var(--fs-lg); }
.step p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 10px; max-width: 30ch; margin-inline: auto; line-height: 1.7; }

/* ---------- 14. Testimonianze ---------- */
.testimonial-note {
  text-align: center; font-size: var(--fs-xs); color: var(--text-muted);
  background: var(--gold-100); border: 1px dashed var(--gold-300);
  border-radius: var(--r-full); padding: 8px 18px; margin: var(--s-5) auto 0; width: fit-content; max-width: 100%;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
}
.stars { color: var(--gold); font-size: var(--fs-sm); letter-spacing: 2px; margin-bottom: var(--s-4); }
.testimonial blockquote {
  margin: 0; font-family: var(--font-serif); font-size: var(--fs-md);
  line-height: 1.7; color: var(--text); flex-grow: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--gold-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.02em;
}
.author-name { font-weight: 600; font-size: var(--fs-sm); }
.author-meta { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 300; }

/* ---------- 15. Prezzi ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-6); display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-xs);
}
.price-card--featured {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 16px 44px rgba(12, 48, 38, 0.28); transform: scale(1.03); z-index: 1;
}
.price-card--featured h3, .price-card--featured .price-amount { color: #fff; }
.price-card--featured .price-per, .price-card--featured .price-desc { color: rgba(255, 255, 255, 0.7); }
.price-card--featured li { color: rgba(255, 255, 255, 0.88); }
.price-card--featured li .icon { color: var(--gold-300); }
.price-card--featured .price-list { border-top-color: rgba(255, 255, 255, 0.16); }

.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--champagne); color: var(--ink);
  border-radius: var(--r-full); padding: 5px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-size: var(--fs-lg); }
.price-desc { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; min-height: 42px; }
.price-figure { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-5); }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.price-per { font-size: var(--fs-sm); color: var(--text-muted); }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); flex-grow: 1; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); line-height: 1.55; }
.price-list .icon { width: 18px; height: 18px; color: var(--eco); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: var(--s-6); }
.pricing-foot { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s-6); }

/* ---------- 16. FAQ ---------- */
.faq-list { margin-top: var(--s-7); border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .icon { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; padding-bottom: var(--s-5); max-width: 62ch; }

/* ---------- 17. CTA finale ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--ink); }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/patron-repeticion.png"); background-size: 340px; opacity: 0.07;
}
.cta-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(150, 129, 89, 0.42) 0%, transparent 68%);
  filter: blur(18px);
}
.cta-orb--a { width: 440px; height: 440px; top: -190px; left: -120px; }
.cta-orb--b { width: 520px; height: 520px; bottom: -260px; right: -150px; opacity: 0.75; }
.final-cta-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; text-align: center; padding-block: var(--s-9); }
.final-cta h2 em { font-style: normal; color: var(--gold-300); }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); margin-top: var(--s-4); }
.final-cta p { color: var(--text-on-dark); margin-top: var(--s-4); font-size: var(--fs-md); }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-7); }
.final-cta-trust {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: center;
  margin-top: var(--s-6); color: rgba(255, 255, 255, 0.55); font-size: var(--fs-sm); font-weight: 300;
}
.final-cta-trust span { display: inline-flex; align-items: center; gap: 7px; }
.final-cta-trust .icon { width: 15px; height: 15px; color: var(--gold-300); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-inline: var(--s-5); }
.footer-grid {
  max-width: 1120px; margin-inline: auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7);
  padding-block: var(--s-8) var(--s-7);
}
.footer-brand-top { display: flex; align-items: center; gap: 11px; }
.footer-brand-top img { width: auto; height: 40px; }
.footer-brand-name { font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; color: #fff; line-height: 1; }
.footer-tagline { color: rgba(255, 255, 255, 0.5); font-size: var(--fs-sm); margin-top: var(--s-3); font-weight: 300; max-width: 34ch; line-height: 1.7; }
.footer-contact { margin-top: var(--s-5); display: flex; flex-direction: column; gap: 9px; }
.footer-contact a, .footer-contact span { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a:hover { color: var(--gold-200); }
.footer-contact .icon { width: 16px; height: 16px; color: var(--gold-300); flex-shrink: 0; }

.footer-col-title {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42); margin-bottom: var(--s-4);
}
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col button, .footer-col li > span {
  color: rgba(255, 255, 255, 0.62); font-size: var(--fs-sm); text-align: left;
  transition: color 0.18s var(--ease);
}
.footer-col li > span { display: inline-block; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }

.footer-bottom {
  max-width: 1120px; margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--s-5);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4);
  color: rgba(255, 255, 255, 0.42); font-size: var(--fs-xs); font-weight: 300;
}
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.55);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.footer-social a:hover { color: var(--ink); background: var(--champagne); border-color: var(--champagne); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-cta-link { color: var(--gold-200) !important; font-weight: 500; font-size: var(--fs-sm) !important; }
.footer-cta-link:hover { color: #fff !important; }

/* ---------- 19. Modale (Termini) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(12, 48, 38, 0.6);
  backdrop-filter: blur(4px); display: none; padding: var(--s-5);
  overflow-y: auto;
}
.modal-backdrop.is-open { display: flex; align-items: flex-start; justify-content: center; animation: fadeIn 0.2s var(--ease); }
.modal {
  background: var(--bg); border-radius: var(--r-xl); max-width: 760px; width: 100%;
  margin: auto; box-shadow: var(--shadow-lg); position: relative;
  padding: var(--s-8) var(--s-7) var(--s-7);
  animation: fadeUp 0.3s var(--ease);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--surface);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.modal h2 { font-size: var(--fs-2xl); margin-top: var(--s-3); }
.legal-updated { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-2); }
.legal-disclaimer {
  font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s-5); line-height: 1.7;
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line, rgba(0,0,0,.1));
}
.legal-clause { margin-top: var(--s-5); }
.legal-clause h3 { font-size: var(--fs-md); }
.legal-clause p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 7px; line-height: 1.75; }

/* ---------- 20. WhatsApp flottante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  height: 54px; padding-inline: 20px; border-radius: var(--r-full);
  box-shadow: 0 10px 30px rgba(12, 48, 38, 0.32);
  font-size: var(--fs-sm); font-weight: 600;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease),
              opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--ink-600); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.wa-float .icon { width: 21px; height: 21px; color: var(--gold-300); }

/* ---------- 21. Animazioni ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.hero-copy > *, .hero-actions { animation: fadeUp 0.7s var(--ease) backwards; }
.hero .trust-row { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.2s; }
.hero-checklist { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.36s; }
.booking-card { animation: fadeUp 0.8s var(--ease) 0.4s backwards; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 400px; gap: var(--s-6); }
  .about-grid { gap: var(--s-7); }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); padding-block: var(--s-8); min-height: 0; }
  .hero-copy { max-width: 100%; }
  .booking-card { max-width: 520px; margin-inline: auto; width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .about-badge { left: var(--s-4); bottom: -22px; }

  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: var(--s-7); }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card--featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 700px) {
  :root { --s-9: 68px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .topbar-hours { display: none; }
  .topbar-inner { justify-content: space-between; }

  .guarantee-inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .guarantee-label { margin-bottom: 2px; }

  .stats-inner { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); padding-block: var(--s-7); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .booking-card { padding: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal { padding: var(--s-7) var(--s-5) var(--s-6); }
  .wa-float { height: 50px; padding-inline: 16px; right: 14px; bottom: 14px; }
  .btn { width: 100%; }
  .hero-actions .btn, .final-cta-actions .btn { width: 100%; }
  .nav-right .btn, .trust-pill, .lang-btn { width: auto; }
  .about-badge { position: static; margin-top: var(--s-4); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .wa-float, .booking-card, .final-cta { display: none !important; }
  body { background: #fff; }
}

/* Sezioni nascoste (recensioni, prezzi) */
[hidden] { display: none !important; }

.footer-legal { flex-basis: 100%; order: 5; font-size: var(--fs-xs); line-height: 1.6; color: rgba(255,255,255,0.42); }

.topbar-login { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-xs); color: #fff; padding: 5px 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--r-full); }
.topbar-login:hover { background: rgba(255,255,255,0.12); color: #fff; }

.form-privacy { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-3); line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--forest, #0c3026); }

/* Contenuti esterni (Google Fonts / Unsplash): attivi solo dopo il consenso */
html.consent-external .hero {
  --hero-photo: url("https://images.unsplash.com/photo-1758273705627-937374bfa978?auto=format&fit=crop&w=1800&q=70");
}

/* Banner cookie */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 880px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--s-5);
  background: #fff; color: var(--text, #0c3026);
  border: 1px solid rgba(12, 48, 38, 0.12); border-radius: 18px;
  padding: 18px 22px; box-shadow: 0 18px 50px rgba(7, 28, 22, 0.28);
}
.cookie-banner[hidden] { display: none; }
.cookie-body { flex: 1; min-width: 0; }
.cookie-title { font-weight: 700; margin: 0 0 4px; }
.cookie-text { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 20px; min-height: 44px; }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; bottom: 10px; left: 10px; right: 10px; padding: 16px; }
  .cookie-actions .btn { flex: 1; width: auto; }
}

/* Bersagli touch più comodi su schermi piccoli */
@media (max-width: 720px) {
  .lang-btn { min-height: 36px; min-width: 40px; }
  .topbar-login { min-height: 36px; padding-inline: 14px; }
  .topbar-phone { min-height: 36px; }
  .footer-col a, .footer-col button, .footer-contact a { display: inline-block; padding-block: 8px; }
  .footer-bottom .footer-social a { min-width: 40px; min-height: 40px; }
}

@media (max-width: 480px) {
  .topbar-right { gap: 8px; }
  .topbar-phone { white-space: nowrap; font-size: 13px; gap: 5px; }
  .topbar-login { padding-inline: 10px; }
  .topbar-login .icon { display: none; }
}
