/* ============================================================
   RSA LE PALME — Design system di produzione
   Palette unica: Tema B "Bordeaux d'accento" (sfondo bianco,
   verde-mare come primario di fiducia, bordeaux come accento).
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Mulish:wght@400;500;600;700;800&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --bg:        #ffffff;
  --bg-alt:    #f1f6f5;
  --surface:   #ffffff;
  --ink:       #232b2b;
  --ink-soft:  #545d5c;
  --ink-faint: #87908f;

  --primary:      #1f5e63;   /* verde-mare — fiducia */
  --primary-dark: #164a4e;
  --primary-soft: #dcebe9;
  --primary-tint: #eef5f4;
  --on-primary:   #ffffff;

  --accent:      #7a0305;    /* bordeaux del brand — uso parsimonioso */
  --accent-dark: #5c0203;
  --accent-soft: #f1dedd;

  --gold:      #c0934f;      /* oro caldo — solo micro-dettagli */
  --gold-soft: #eaf2f0;

  --line:    #e6ecea;
  --line-2:  #d3dedb;

  --hero-grad: linear-gradient(180deg, rgba(31,94,99,.04), rgba(31,94,99,.10));
  --footer-bg: #173b3e;
  --footer-ink: #e9efed;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(34,40,40,.22);
  --shadow-sm: 0 4px 16px -8px rgba(34,40,40,.25);
  --shadow-card: 0 18px 44px -20px rgba(20,50,52,.28);

  --font-head: 'Mulish', system-ui, sans-serif;
  --font-body: 'Mulish', system-ui, sans-serif;
  --font-accent: 'Newsreader', Georgia, serif;
  --maxw: 1200px;
}

/* ============================================================
   BASE
   ============================================================ */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{ font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.018em; }
h1{ font-size: clamp(2.05rem, 1.45rem + 2.2vw, 3.25rem); font-weight: 800; }
h2{ font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); }
h3{ font-size: clamp(1.25rem, 1.08rem + 0.8vw, 1.6rem); }
p{ margin: 0 0 1rem; }
.lead{ font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section{ padding: clamp(56px, 8vw, 104px) 0; }
.section.tight{ padding: clamp(40px,5vw,64px) 0; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow::before{ content:""; width: 26px; height: 2px; background: var(--accent); display:inline-block; }
.eyebrow.center{ justify-content: center; }

.serif-it{ font-family: var(--font-accent); font-style: italic; font-weight: 500; }

/* Accessibilità: focus visibile coerente + skip link */
:focus-visible{ outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip-link{
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--primary); color: #fff; padding: .7em 1.1em; border-radius: 0 0 10px 10px;
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus{ top: 0; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ============================================================
   PLACEHOLDER FOTO (sostituibile con <img>)
   In produzione: sostituire <div class="photo ..."> con
   <img src="images/nome-foto.webp" alt="..." loading="lazy">
   nello stesso punto. Le regole di dimensione valgono per
   entrambi (.photo e img), quindi lo scambio è trasparente.
   ============================================================ */
.photo{
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-soft));
  color: var(--primary); border: 1px dashed rgba(31,94,99,.28);
}
.photo svg{ width: 44px; height: 44px; opacity: .55; }
.photo .ph-cap{
  position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center;
  font-size: .72rem; font-weight: 600; line-height: 1.35; color: var(--primary-dark); opacity: .6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .9em 1.5em; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  line-height: 1; white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--primary-dark); }
.btn-accent{ background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover{ background: var(--accent-dark); }
.btn-outline{ background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover{ background: var(--primary); color: var(--on-primary); }
.btn-ghost{ background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover{ border-color: var(--primary); color: var(--primary); }
.btn-lg{ font-size: 1.08rem; padding: 1.05em 1.9em; }
.btn-light{ background: #fff; color: var(--primary); }
.btn-on-dark{ background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-on-dark:hover{ background: rgba(255,255,255,.12); }

.link-arrow{ display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--primary); }
.link-arrow svg{ transition: transform .2s ease; }
.link-arrow:hover svg{ transform: translateX(4px); }

/* icona inline (telefono, mail, ecc.) */
.i{ width: 1em; height: 1em; flex: none; vertical-align: -.12em; }

/* ============================================================
   HEADER
   ============================================================ */
.utilbar{ background: var(--ink); color: #efeae2; font-size: .82rem; font-weight: 600; }
.utilbar .wrap{ display: flex; align-items: center; gap: 22px; justify-content: flex-end; height: 38px; }
.utilbar a{ display: inline-flex; align-items:center; gap:.4em; opacity:.92; }
.utilbar a:hover{ opacity: 1; color: var(--gold); }
.utilbar .u-left{ margin-right: auto; opacity: .8; font-weight: 600; letter-spacing: .02em; }

.header{
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled{ box-shadow: var(--shadow-sm); }
.header .wrap{ display: flex; align-items: center; gap: 28px; height: 80px; }
.brand{ display: flex; align-items: center; flex: none; }
.brand img{ height: 50px; width: auto; }
.nav{ display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav > .has-drop > a{
  padding: .6em .85em; border-radius: 10px; font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .35em; transition: color .15s, background .15s;
}
.nav > a:hover, .nav .has-drop:hover > a{ color: var(--primary); background: var(--primary-tint); }
/* voce attiva (senza JS, via aria-current / data-active) */
.nav > a[aria-current="page"],
.nav > .has-drop[data-active] > a{ color: var(--primary); background: var(--primary-tint); }

.has-drop{ position: relative; }
.caret{ width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.dropdown{
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; z-index: 50;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown{ opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a{ display: block; padding: .6em .8em; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.dropdown a:hover{ background: var(--primary-tint); color: var(--primary); }
.dropdown a small{ display:block; font-weight: 500; font-size: .8rem; color: var(--ink-faint); }
.header .cta-wrap{ flex: none; }
.burger{ display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span{ width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position: relative; background: var(--hero-grad); overflow: hidden; }
.hero .wrap{ display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; padding-top: clamp(48px,6vw,84px); padding-bottom: clamp(48px,6vw,84px); }
.hero h1{ margin-bottom: 1.2rem; }
.hero h1 .serif-it{ color: var(--accent); }
.hero .lead{ margin-bottom: 1.8rem; max-width: 30ch; }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.8rem; }
.badge{
  display: inline-flex; align-items: center; gap: .5em; background: var(--surface); border: 1px solid var(--line);
  padding: .5em .95em; border-radius: 100px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.badge .star{ color: var(--gold); }
.badge .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-media{ position: relative; }
.hero-media .photo, .hero-media img{ width: 100%; height: clamp(340px, 42vw, 520px); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); object-fit: cover; }
.hero-media .float-card{
  position: absolute; left: -22px; bottom: 28px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.hero-media .float-card .ico{ width: 44px; height: 44px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; }
.hero-media .float-card b{ font-size: 1.5rem; font-family: var(--font-head); font-weight: 800; display:block; line-height: 1; }
.hero-media .float-card small{ color: var(--ink-faint); font-weight: 600; font-size: .8rem; display:block; }

/* ============================================================
   INTRO / CONTACT INLINE STRIP
   ============================================================ */
.contact-strip{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 2rem; }
.ci{ display: flex; gap: 14px; align-items: flex-start; }
.ci .gi{ width: 46px; height: 46px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.ci b{ display: block; font-size: .95rem; }
.ci span{ color: var(--ink-soft); font-size: .95rem; }

/* ============================================================
   FEATURE (editoriale, lati alternati)
   ============================================================ */
.feature{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.feature + .feature{ margin-top: clamp(48px,7vw,96px); }
.feature.flip .feat-media{ order: 2; }
.feature .feat-media .photo, .feature .feat-media img{ width: 100%; height: clamp(300px, 34vw, 440px); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); object-fit: cover; }
.feature h2{ margin-bottom: 1rem; }
.feature ul.ticks{ margin-top: 1.2rem; }

ul.ticks{ list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
ul.ticks li{ position: relative; padding-left: 2rem; color: var(--ink-soft); }
ul.ticks li::before{
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft);
}
ul.ticks li::after{ content:"✓"; position: absolute; left: 3px; top: .15em; color: var(--primary); font-weight: 800; font-size: .8rem; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.svc-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.svc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.svc-card .ico{ width: 54px; height: 54px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.svc-card h3{ font-size: 1.32rem; }
.svc-card p{ color: var(--ink-soft); font-size: .98rem; margin: 0; flex: 1; }
.svc-card .link-arrow{ margin-top: 8px; font-size: .95rem; }

/* ============================================================
   STRUCTURE HIGHLIGHTS (foto + caption)
   ============================================================ */
.highlights{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.hl .photo, .hl img{ width: 100%; height: 200px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; object-fit: cover; }
.hl b{ display: block; font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; margin-bottom: 2px; }
.hl span{ color: var(--ink-soft); font-size: .92rem; }

/* ============================================================
   PRICING
   ============================================================ */
.price-row{ display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.price-cards{ display: flex; gap: 16px; }
.price-card{
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; position: relative;
}
.price-card.feat{ border-color: var(--primary); box-shadow: var(--shadow-card); }
.price-card .tag{ display:inline-block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); background: var(--bg-alt); padding: .35em .8em; border-radius: 100px; margin-bottom: 12px; }
.price-card.feat .tag{ background: var(--primary); color: #fff; }
.price-card .amt{ font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.price-card .amt span{ font-size: 1rem; color: var(--ink-faint); font-family: var(--font-body); font-weight: 600; }
.price-card .per{ color: var(--ink-faint); font-size: .9rem; margin-top: 4px; }
.note-line{ color: var(--ink-faint); font-size: .9rem; margin-top: 1.2rem; }

/* ============================================================
   FASCE (band) / CTA
   ============================================================ */
.band{ background: var(--bg-alt); }
.band.sand{ background: var(--accent-soft); }
.band .feature{ align-items: center; }

.cta-band{ background: var(--primary); color: #fff; text-align: center; }
.cta-band h2{ color: #fff; max-width: 18ch; margin: 0 auto 1.6rem; }
.cta-band .btn-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-row{ display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px,4vw,52px); align-items: stretch; }
.form-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow-sm); }
.field{ margin-bottom: 16px; }
.field label{ display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .req{ color: var(--accent); }
.field input, .field select, .field textarea{
  width: 100%; padding: .85em 1em; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.field textarea{ resize: vertical; min-height: 110px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent{ display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin: 4px 0 18px; }
.consent input{ margin-top: 3px; flex: none; }
/* honeypot anti-spam (nascosto agli umani) */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg{ margin: 14px 0 0; padding: .9em 1.1em; border-radius: 12px; font-weight: 600; font-size: .95rem; display: none; }
.form-msg.show{ display: block; }
.form-msg.ok{ background: var(--primary-tint); color: var(--primary-dark); border: 1px solid var(--primary-soft); }
.form-msg.err{ background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #e3b9b8; }

.map-card{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display:flex; flex-direction: column; }
.map-card .map{ flex: 1; min-height: 280px; background: var(--primary-tint); position: relative; display:grid; place-items:center; color: var(--primary); }
.map-card .map iframe{ width:100%; height:100%; border:0; display:block; }
.map-card .addr{ background: var(--surface); padding: 18px 22px; display: flex; gap: 20px; flex-wrap: wrap; }
.map-card .addr div{ font-size: .9rem; }
.map-card .addr b{ display:block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ max-width: 820px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--line-2); }
.faq-q{ width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.25em 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.faq-q .pm{ flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; transition: .2s; }
.faq-item.open .faq-q .pm{ background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); }
.faq-a p{ padding: 0 0 1.3em; margin: 0; max-width: 64ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background: var(--footer-bg); color: var(--footer-ink); padding: clamp(48px,6vw,80px) 0 28px; }
.footer .cols{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer img.flogo{ height: 46px; margin-bottom: 18px; }
.footer h5{ font-family: var(--font-body); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; opacity: .7; }
.footer a, .footer p.fl{ display: block; color: var(--footer-ink); opacity: .85; margin-bottom: 10px; font-size: .95rem; }
.footer a:hover{ opacity: 1; color: var(--gold); }
.footer .fcontact{ opacity: .85; font-size: .95rem; line-height: 1.8; }
.footer .fcontact a{ display: inline; margin: 0; }
.footer .legal{ border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; opacity: .6; }
.footer .legal a{ display: inline; margin: 0; }

/* ============================================================
   BARRA "CHIAMA" FISSA (mobile)
   ============================================================ */
.mobile-call{ display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); padding: 10px 14px; gap: 10px; }
.mobile-call .btn{ flex: 1; }

/* ============================================================
   DRAWER MOBILE
   ============================================================ */
.drawer{ position: fixed; inset: 0; z-index: 200; background: rgba(20,24,24,.5); opacity: 0; visibility: hidden; transition: .25s; }
.drawer.open{ opacity: 1; visibility: visible; }
.drawer-panel{ position: absolute; top: 0; right: 0; width: min(86vw, 360px); height: 100%; background: var(--surface); padding: 24px; transform: translateX(100%); transition: .28s ease; overflow-y: auto; }
.drawer.open .drawer-panel{ transform: translateX(0); }
.drawer a{ display: block; padding: .8em 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }
.drawer a[aria-current="page"]{ color: var(--primary); }
/* il bottone CTA dentro al drawer mantiene aspetto e testo centrato */
.drawer a.btn{ display: flex; padding: .9em 1.5em; border: 2px solid transparent; font-weight: 700; }
.drawer .close{ background:none;border:0;font-size:2rem;cursor:pointer;line-height:1;color:var(--ink);margin-bottom:12px; }

/* ============================================================
   PAGINE INTERNE
   ============================================================ */
.page-hero{ background: var(--hero-grad); padding: clamp(36px,5vw,64px) 0 clamp(40px,5vw,68px); }
.page-hero .wrap{ max-width: 880px; }
.page-hero h1{ margin: .4rem 0 1rem; }
.page-hero .lead{ max-width: 60ch; }
.page-hero .hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }

.breadcrumb{ background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumb .wrap{ display: flex; align-items: center; gap: .5em; padding-top: 12px; padding-bottom: 12px; font-size: .85rem; color: var(--ink-faint); font-weight: 600; }
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--primary); }
.breadcrumb .sep{ opacity: .5; }
.breadcrumb b{ color: var(--primary); font-weight: 700; }

.prose{ max-width: 760px; }
.prose p{ color: var(--ink-soft); }
.prose h2{ margin: 2.4rem 0 1rem; }
.prose h3{ margin: 1.8rem 0 .6rem; }

/* gallery */
.gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .photo, .gallery img{ width: 100%; height: 230px; border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: cover; }
.gallery .tall{ grid-row: span 2; height: 478px; }

/* value cards (chi siamo) */
.value-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.value-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-card .ico{ width: 48px; height: 48px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.value-card h3{ font-size: 1.2rem; margin-bottom: 6px; }
.value-card p{ color: var(--ink-soft); font-size: .96rem; margin: 0; }
.value-card.accent .ico{ background: var(--accent-soft); color: var(--accent); }

/* steps (come si accede) */
.steps{ display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: step; }
.step{ position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 22px; }
.step::before{ counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.step h3{ font-size: 1.15rem; margin-bottom: 6px; }
.step p{ color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* timeline (giornata tipo) */
.timeline{ max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before{ content:""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.tl-item{ position: relative; padding: 0 0 28px 28px; }
.tl-item::before{ content:""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--primary); }
.tl-item .time{ font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.tl-item h3{ font-size: 1.2rem; margin: 2px 0 4px; }
.tl-item p{ color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* due colonne incluso/extra */
.split-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box.tinted{ background: var(--primary-tint); border-color: transparent; }
.box h3{ margin-bottom: 14px; }

/* CTA inline card */
.cta-card{ background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px,4vw,56px); text-align: center; }
.cta-card h2{ color: #fff; max-width: 22ch; margin: 0 auto 1.4rem; }
.cta-card .btn-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 960px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery .tall{ grid-row: span 1; height: 230px; }
  .value-grid{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .split-2{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .gallery, .value-grid, .steps{ grid-template-columns: 1fr; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px){
  .nav, .header .cta-wrap{ display: none; }
  .burger{ display: flex; margin-left: auto; }
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .feature, .price-row, .contact-row{ grid-template-columns: 1fr; }
  .feature.flip .feat-media{ order: 0; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .highlights{ grid-template-columns: 1fr 1fr; }
  .footer .cols{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .mobile-call{ display: flex; }
  body{ padding-bottom: 64px; }
}
@media (max-width: 560px){
  .services-grid, .highlights, .contact-strip, .field-row{ grid-template-columns: 1fr; }
  .price-cards{ flex-direction: column; }
  .footer .cols{ grid-template-columns: 1fr; }
  .utilbar .u-left{ display: none; }
}
