/* Anna Serra — site component styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg-page); color: var(--fg-1); }

/* Sticky footer — flex column so footer always sits at the viewport bottom */
html, body, #root { height: 100%; }
#root > div { min-height: 100%; display: flex; flex-direction: column; }
main { flex: 1; }

.as-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.as-narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  border-radius: var(--r-md); padding: 12px 22px;
  border: 0; cursor: pointer; text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  letter-spacing: 0.01em; line-height: 1;
}
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-primary { background: var(--as-amber); color: var(--fg-on-amber); }
.btn-primary:hover { background: var(--as-amber-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 0; box-shadow: var(--shadow-amber), 0 0 0 3px rgba(200,146,42,.35); }

.btn-secondary { background: var(--as-navy); color: var(--fg-on-navy); }
.btn-secondary:hover { background: var(--as-navy-deep); }

.btn-ghost { background: transparent; color: var(--as-navy); border: 1px solid var(--as-navy); }
.btn-ghost:hover { background: rgba(29,78,107,.08); }

.btn-link, .btn-link-light {
  background: transparent; padding: 12px 4px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.btn-link { color: var(--as-steel); }
.btn-link:hover { color: var(--as-navy); }
.btn-link-light { color: var(--as-cream); }
.btn-link-light:hover { color: var(--as-amber-soft); }

/* ---------- Header ---------- */
.as-header { position: sticky; top: 0; z-index: 50; }

.as-bar {
  background: rgba(200,146,42,.96); color: var(--fg-on-amber);
  padding: 10px 24px; text-align: center; font-size: 14px; font-weight: 500;
  position: relative; z-index: 51;
}
.as-bar b { font-weight: 700; }
.as-bar-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--fg-on-amber); cursor: pointer;
  padding: 6px 10px; border-radius: 4px; font-size: 14px; line-height: 1;
}
.as-bar-x:hover { background: rgba(0,0,0,.08); }

/* Navy colored nav — brand authority on every page */
.as-nav {
  background: var(--as-navy);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: padding var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  position: relative; z-index: 51;
}
.as-nav-scrolled { box-shadow: var(--shadow-lg); }
.as-nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 18px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.as-nav-scrolled .as-nav-inner { padding-top: 12px; padding-bottom: 12px; }

.as-logo { cursor: pointer; text-decoration: none; line-height: 1.1; }
.as-logo-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  color: var(--as-cream); letter-spacing: -0.5px; display: block;
}
.as-logo-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--as-amber); display: block; margin-top: 2px;
}

.as-nav-links { display: flex; gap: 32px; }
.as-nav-link {
  position: relative; cursor: pointer; font-size: 14px; font-weight: 500;
  color: rgba(244,242,238,0.78); padding: 6px 0; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.as-nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--as-amber);
  transition: width var(--dur-base) var(--ease-out);
}
.as-nav-link:hover, .as-nav-link.is-active { color: var(--as-cream); }
.as-nav-link.is-active::after { width: 100%; }

/* ---------- Sections ---------- */
.as-section { padding: var(--sp-9) 0; }
.as-section-cream { background: var(--as-cream); }
.as-section-paper { background: var(--as-cream-deep); }

.as-section-head { margin-bottom: var(--sp-7); max-width: 720px; }
.as-section-head .as-eyebrow { display: inline-block; margin-bottom: 12px; }

.as-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--as-amber);
}
.as-eyebrow-light { color: var(--as-amber-soft); }

/* ---------- Hero ---------- */
.as-hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.as-hero-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a4a5e 0%, #1D4E6B 60%, #0f3245 100%);
}
.as-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244,229,192,.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200,146,42,.12) 0%, transparent 50%);
}
.as-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,78,107,0.55) 0%, rgba(29,78,107,0.35) 100%);
}
.as-hero-inner { position: relative; z-index: 2; padding: 96px 24px; max-width: 900px; }
.as-hero-title {
  font-family: var(--font-display); font-weight: 700;
  color: var(--as-cream); font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 24px;
  text-wrap: balance;
}
.as-hero-lead {
  color: rgba(244,242,238,0.92); font-size: 18px; line-height: 1.65;
  max-width: 620px; margin: 0 0 36px;
}
.as-hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Services grid ---------- */
.as-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

.as-card {
  background: var(--as-paper); border: 1px solid var(--as-rule-soft);
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.as-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.as-card-eb {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--as-amber); margin-bottom: 10px;
}
.as-card h3 {
  font-family: var(--font-display); font-weight: 600;
  color: var(--as-navy); font-size: 22px; margin: 0 0 8px;
}
.as-card p { font-size: 14px; color: var(--fg-2); margin: 0 0 16px; line-height: 1.6; }
.as-card-link {
  font-size: 13px; font-weight: 600; color: var(--as-steel);
  cursor: pointer; text-decoration: none; letter-spacing: 0.02em;
}
.as-card-link:hover { color: var(--as-navy); }

/* ---------- Quote / full-bleed band ---------- */
.as-quote { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.as-quote-img {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #1D4E6B 0%, #2E7D9F 50%, #1D4E6B 100%);
}
.as-quote-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 40%, rgba(244,229,192,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(15, 50, 69,.45) 0%, transparent 60%);
}
.as-quote-overlay { position: absolute; inset: 0; background: rgba(29,78,107,0.45); }
.as-quote-inner { position: relative; z-index: 2; padding: 96px 24px; }
.as-quote-h {
  font-family: var(--font-display); font-weight: 700;
  color: var(--as-cream); font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12; margin: 14px 0 18px; max-width: 880px;
  text-wrap: balance;
}
.as-quote-lead { color: rgba(244,242,238,0.88); font-size: 17px; max-width: 680px; margin: 0; }

/* ---------- CTA band ---------- */
.as-cta-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-7); align-items: center;
}
.as-cta-band h2 { color: var(--as-navy); margin: 12px 0 8px; }
.as-cta-band .lead { color: var(--fg-2); margin: 0; font-size: 16px; }

/* ---------- Contact ---------- */
.as-contatti { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.as-contatti-info h2 { color: var(--as-navy); margin: 12px 0 16px; }
.as-fields-stack { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.as-map-wrap {
  margin-top: 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--as-rule-soft);
}
.as-map-label {
  background: var(--as-navy);
  color: var(--as-cream);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.as-map-open {
  font-size: 13px;
  font-weight: 600;
  color: var(--as-amber-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.as-map-open:hover { color: var(--as-amber); text-decoration-thickness: 1.5px; }
.as-field-h, .as-footer-h {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--as-navy); margin: 0 0 6px; display: flex; align-items: center; gap: 8px;
}
.as-field-h::before, .as-footer-h::before {
  content: ""; width: 14px; height: 1px; background: var(--as-amber);
}
.as-field p { margin: 0; font-size: 15px; color: var(--fg-1); line-height: 1.5; }

.as-form {
  background: var(--as-paper); border: 1px solid var(--as-rule-soft);
  border-radius: var(--r-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm);
}
.as-form-row { display: flex; flex-direction: column; gap: 6px; }
.as-form-row label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--as-navy);
}
.as-input {
  font-family: var(--font-body); font-size: 15px; color: var(--as-ink);
  background: var(--as-paper); border: 1px solid var(--as-rule); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  width: 100%;
}
.as-input:focus { outline: 0; border-color: var(--as-steel); box-shadow: 0 0 0 3px rgba(46,125,159,.18); }
.as-input::placeholder { color: #9aa4b0; }
textarea.as-input { resize: vertical; min-height: 110px; }
.as-form-ok  { background: #DDEFE5; color: #1F5A43; border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; font-weight: 500; }
.as-form-err { background: #FDECEA; color: #8B2A20; border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; font-weight: 500; }

/* Sliding pill tab switch */
.as-form-wrap { display: flex; flex-direction: column; gap: 0; }
.as-form-tabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--as-cream-deep);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 18px;
  isolation: isolate;
}
.as-form-tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px;
  left: 4px; width: calc(50% - 4px);
  background: var(--as-navy);
  border-radius: 4px;
  z-index: 0;
  transition: transform var(--dur-base) var(--ease-out);
  box-shadow: 0 2px 6px rgba(22,62,85,0.18);
}
.as-form-tabs[data-mode="whatsapp"]::before { transform: translateX(100%); }
.as-form-tab {
  position: relative; z-index: 1;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border: 0; background: transparent; cursor: pointer;
  border-radius: 4px; color: var(--fg-2);
  transition: color var(--dur-base) var(--ease-out);
  letter-spacing: 0.01em;
}
.as-form-tab:hover { color: var(--as-navy); }
.as-form-tab.is-active { color: var(--as-cream); }
.as-form-tab.is-active:hover { color: var(--as-cream); }
.as-form-hint { font-size: 12px; color: var(--fg-3); line-height: 1.55; }
.as-form button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* WhatsApp-branded button */
.btn-whatsapp { background: #25D366; color: #0B3D1F; }
.btn-whatsapp:hover { background: #1FB856; }
.btn-whatsapp:active { transform: translateY(1px); }
.btn-whatsapp:focus-visible { outline: 0; box-shadow: 0 8px 22px -10px rgba(37,211,102,0.55), 0 0 0 3px rgba(37,211,102,0.35); }

/* ---------- FAQ ---------- */
.as-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.as-faq-item { background: var(--as-paper); border: 1px solid var(--as-rule-soft); border-radius: var(--r-lg); overflow: hidden; }
.as-faq-q { width: 100%; background: transparent; border: 0; cursor: pointer; padding: 20px 22px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--as-navy); }
.as-faq-q:hover { background: var(--as-cream); }
.as-faq-chev { font-family: var(--font-display); font-size: 24px; color: var(--as-amber); font-weight: 400; line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.as-faq-item.is-open .as-faq-chev { transform: rotate(0deg); }
.as-faq-a {
  max-height: 0; overflow: hidden; padding: 0 22px;
  transition: max-height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
}
.as-faq-a.is-open { max-height: 300px; padding: 0 22px 22px; }
.as-faq-a p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.65; }

/* ---------- Scadenze table ---------- */
.as-table { background: var(--as-paper); border: 1px solid var(--as-rule-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.as-table-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--as-rule-soft); }
.as-table-row:last-child { border-bottom: 0; }
.as-table-date { font-family: var(--font-mono); font-size: 13px; color: var(--as-navy); font-weight: 500; }
.as-table-title { font-size: 15px; color: var(--as-ink); font-weight: 500; }
.as-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em; }
.as-badge-amber { background: var(--as-amber); color: var(--fg-on-amber); }
.as-badge-soft { background: var(--as-cream-deep); color: var(--as-navy); border: 1px solid var(--as-rule); }

/* ---------- Bio / Chi siamo ---------- */
.as-bio { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-8); align-items: start; }
.as-bio-text h2 { color: var(--as-navy); margin: 12px 0 18px; }
.as-bio-text .lead { color: var(--fg-1); }
.as-bio-stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--as-rule); }
.as-stat b { display: block; font-family: var(--font-display); font-size: 36px; color: var(--as-navy); font-weight: 700; line-height: 1; margin-bottom: 6px; }
.as-stat small { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--fg-3); }

/* ---------- Footer ---------- */
.as-footer { background: var(--as-navy); color: var(--as-cream); }
.as-footer-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 56px var(--container-pad) 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.as-footer-brand { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--as-cream); margin-bottom: 8px; }
.as-footer-blurb { font-size: 14px; color: rgba(244,242,238,0.78); line-height: 1.7; margin: 0; max-width: 320px; }
.as-footer-h { color: var(--as-amber-soft); }
.as-footer-h::before { background: var(--as-amber-soft); }
.as-footer-grid > div > a, .as-footer-grid > div > p {
  display: block; font-size: 13px; color: rgba(244,242,238,0.78);
  text-decoration: none; line-height: 2; cursor: pointer; margin: 0;
}
.as-footer-grid > div > a:hover { color: var(--as-cream); }
.as-footer-bot {
  border-top: 1px solid rgba(255,255,255,0.16);
  max-width: var(--container-max); margin: 0 auto;
  padding: 16px var(--container-pad);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(244,242,238,0.55);
}
.as-credits { font-family: var(--font-body); }
.as-credits-link { color: inherit; text-underline-offset: 3px; }
.as-credits-link:hover { color: var(--as-cream); }
.as-heart { color: var(--as-amber-soft); font-size: 17px; line-height: 1; display: inline-block; transform: translateY(1px); }

/* ============================================================
   Cookie consent — floating card
   ============================================================ */
.as-cookie {
  position: fixed;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: max(var(--sp-4), env(safe-area-inset-bottom, 0px));
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  z-index: 200;
  padding: var(--sp-4) var(--sp-5);
  background: var(--as-navy);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(200, 146, 42, 0.42),
    var(--shadow-lg),
    0 16px 48px -12px rgba(0, 0, 0, 0.38);
  animation: as-slide-up 320ms var(--ease-out) both;
}
@keyframes as-slide-up {
  from { transform: translateY(calc(100% + 24px)); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.as-cookie.is-exiting {
  pointer-events: none;
  animation: as-cookie-exit 400ms var(--ease-in) forwards;
}
@keyframes as-cookie-exit {
  to {
    opacity: 0;
    transform: translateY(calc(100% + 40px));
  }
}
.as-cookie-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.as-cookie-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(244,242,238,0.88);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  min-width: 260px;
  margin: 0;
}
/* Global `p { color: var(--fg-2) }` would paint body ink on navy — reset & inherit */
.as-cookie-text p {
  margin: 0;
  color: inherit;
  line-height: inherit;
  text-wrap: pretty;
}
.as-cookie-text .as-cookie-more { color: rgba(244, 242, 238, 0.82); }
.as-cookie-text b { color: var(--as-cream); }
/* Links quieter than the amber frame — hover lifts to token soft amber, not full amber */
.as-cookie-text a {
  color: rgba(224, 178, 85, 0.68);
  text-decoration-color: rgba(224, 178, 85, 0.28);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
.as-cookie-text a:hover {
  color: var(--as-amber-soft);
  text-decoration-color: rgba(224, 178, 85, 0.42);
}
.as-cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.as-cookie-btns .btn {
  padding: 10px 18px;
  font-size: 13px;
}
.as-cookie-decline {
  background: var(--as-danger);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.as-cookie-decline:hover:not(:disabled) { background: #6e2a1f; }
.as-cookie-decline:active:not(:disabled) { transform: translateY(1px); }
.as-cookie-decline:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(168, 65, 43, 0.45);
}
.as-cookie-decline:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Map blocked placeholder */
.as-map-blocked {
  height: 400px;
  background: var(--as-cream-deep);
  border-top: 1px solid var(--as-rule-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 32px;
}
.as-map-blocked p { color: var(--fg-2); font-size: 15px; margin: 0; max-width: 420px; }
.as-map-blocked-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Policy pages
   ============================================================ */
.as-policy-body { margin-top: 32px; }
.as-policy-body h3 {
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--as-navy);
}
.as-policy-body p { margin-bottom: 14px; }
.as-policy-list {
  padding-left: 22px;
  margin: 0 0 14px;
  color: var(--fg-2);
  line-height: 1.9;
}
.as-policy-list a { color: var(--as-steel); }

/* Footer legal links */
.as-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(244,242,238,0.55);
}
.as-footer-legal a {
  color: rgba(244,242,238,0.55);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.as-footer-legal a:hover { color: var(--as-cream); }
.as-footer-dot { color: rgba(244,242,238,0.3); }

/* ============================================================
   Hamburger button
   ============================================================ */
.as-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.as-hamburger:hover { background: rgba(255,255,255,0.08); }
.as-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--as-cream);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity   var(--dur-fast) var(--ease-out),
    width     var(--dur-base) var(--ease-out);
}
.as-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.as-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.as-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Mobile fullscreen menu overlay
   ============================================================ */
.as-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--as-navy);
  z-index: 49; /* below header z-50 so hamburger stays clickable */
  display: flex;
  flex-direction: column;
  /* padding-top clears the sticky header (bar ~60px + nav ~60px = ~120px) */
  padding: 120px 32px 48px;
  overflow-y: auto;
  animation: as-menu-in 200ms var(--ease-out) both;
}
@keyframes as-menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.as-mobile-link {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: rgba(244,242,238,0.88);
  padding: 18px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  display: block;
  line-height: 1.1;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}
.as-mobile-link:hover, .as-mobile-link.is-active { color: var(--as-amber); padding-left: 6px; }

.as-mobile-cta {
  margin-top: 40px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 18px;
}

/* Nav: visible separator when mobile menu is open */
.as-nav.menu-open {
  border-bottom: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   Responsive
   ============================================================ */

/* --- Tablet + Mobile ≤ 900px --- */
@media (max-width: 900px) {
  .as-grid-3, .as-contatti, .as-bio, .as-footer-grid { grid-template-columns: 1fr; }
  .as-table-row { grid-template-columns: 1fr; gap: 6px; }

  /* Nav: show hamburger, hide desktop controls */
  .as-nav-links { display: none; }
  .as-nav-cta   { display: none; }
  .as-hamburger { display: flex; }

  /* CTA band: stack and center */
  .as-cta-band { grid-template-columns: 1fr; gap: var(--sp-5); text-align: center; }
  .as-cta-band .btn { width: 100%; justify-content: center; }

  /* Footer bot */
  .as-footer-bot { flex-direction: column; gap: 8px; text-align: center; }
  .as-footer-legal { justify-content: center; }

  /* Cookie banner */
  .as-cookie-inner { flex-direction: column; align-items: stretch; }
  .as-cookie-btns { justify-content: flex-end; }

  /* Bio stats */
  .as-bio-stats { flex-wrap: wrap; gap: 20px; }
}

/* --- Mobile ≤ 640px: spacing, hero, type --- */
@media (max-width: 640px) {
  .as-container { padding: 0 16px; }

  /* Reduce section vertical rhythm */
  .as-section { padding: var(--sp-7) 0; }
  .as-section-head { margin-bottom: var(--sp-5); }

  /* Nav */
  .as-nav-inner { padding: 14px 16px; }
  .as-logo-name { font-size: 20px; }

  /* Announcement bar — allow text to wrap naturally */
  .as-bar { padding: 10px 48px 10px 16px; text-align: left; font-size: 13px; }

  /* Hero */
  .as-hero { min-height: auto; }
  .as-hero-inner { padding: 64px 16px 48px; }
  .as-hero-cta { flex-direction: column; align-items: stretch; }
  .as-hero-cta .btn { width: 100%; justify-content: center; }

  /* Quote band */
  .as-quote { min-height: auto; }
  .as-quote-inner { padding: 56px 16px; }

  /* Services cards — already 1fr at 900px; ensure no overflow */
  .as-card { padding: var(--sp-4); }

  /* Scadenze table */
  .as-table-row { padding: 14px 16px; }
  .as-table-date { font-size: 12px; }

  /* Contact form */
  .as-contatti { gap: var(--sp-5); }
  .as-form { padding: 20px 16px; }
  .as-form-tab { padding: 10px 12px; font-size: 12px; }

  /* Footer */
  .as-footer-grid { padding: 40px 16px 24px; gap: 24px; }
  .as-footer-grid > div > a { word-break: break-all; }
  .as-footer-blurb { max-width: 100%; }

  /* FAQ */
  .as-faq-q { padding: 16px 16px; font-size: 15px; }
  .as-faq-a { padding: 0 16px; }
  .as-faq-a.is-open { padding: 0 16px 16px; }

  /* Cookie floating card — tighter inset on small phones */
  .as-cookie {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px));
    padding: var(--sp-4) var(--sp-4);
  }
}
