/* =====================================================================
   Certosa Servizi — Custom stylesheet
   Stack: Bootstrap 5 (CDN) + questo file.
   Palette: oro #9C7A22 / bronzo #8A5A32 / nero #171410 / bianco #FFFFFF
   ===================================================================== */

/* -------------------- 1. Design tokens -------------------- */
:root {
  --brand: #9C7A22;        /* oro antico (riempimenti / primario) */
  --brand-600: #866619;    /* oro scuro (hover / testo accento) */
  --brand-700: #644C12;    /* oro profondo */
  --brand-50: #F6F0DF;     /* oro pallido (sfondi tenui) */

  --accent: #8A5A32;       /* bronzo */
  --accent-600: #6F4726;   /* bronzo scuro */

  --ink: #171410;          /* nero caldo (sezioni scure / titoli) */
  --ink-soft: #2B2417;
  --text: #3B362B;         /* testo (bruno scuro) */
  --muted: #7C7360;        /* grigio caldo attenuato */

  --bg: #F7F3E9;           /* bianco caldo / crema */
  --surface: #FFFFFF;
  --border: #E9E1CF;

  --grad-brand: linear-gradient(135deg, #C79A2E 0%, #A9822B 45%, #7A4E2A 100%);

  --shadow-sm: 0 1px 2px rgba(23, 20, 14, .06);
  --shadow-md: 0 8px 24px rgba(23, 20, 14, .08);
  --shadow-lg: 0 24px 60px rgba(23, 20, 14, .12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1200px;
}

/* -------------------- 2. Base -------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

a { text-decoration: none; transition: color .2s ease; }

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.text-muted-2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg); }
.bg-ink { background: var(--ink); }

.lead-2 { font-size: 1.125rem; color: var(--muted); }

/* gradient text helper */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* section eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .75rem; }

/* -------------------- 3. Buttons -------------------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 100px;
  padding: .8rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(156, 122, 34, .32);
}
.btn-brand:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(156, 122, 34, .42);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(138, 90, 50, .30);
}
.btn-accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }

.btn-outline-ink {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}
.btn-outline-ink:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }

.btn-light-ghost {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.btn-light-ghost:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* -------------------- 4. Navbar -------------------- */
.site-nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
  padding: .9rem 0;
}
.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -.03em;
}
.navbar-brand .logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  margin-right: .55rem;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(156,122,34,.35);
}
.navbar-brand span.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -3px;
}
.site-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-soft);
  margin: 0 .35rem;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--brand-600); }
.site-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; padding: .25rem; }
.navbar-toggler:focus { box-shadow: none; }

/* -------------------- 5. Hero -------------------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(138,90,50,.13), transparent 60%),
    radial-gradient(55% 55% at 10% 20%, rgba(176,138,46,.20), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  z-index: 0;
}
.hero .blob-1 { width: 360px; height: 360px; background: #E6CE86; top: -80px; right: -60px; }
.hero .blob-2 { width: 300px; height: 300px; background: #D8B187; bottom: -120px; left: -40px; }
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero .hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .45rem .9rem .45rem .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.hero-badge .tag {
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 100px;
}

/* hero stats */
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.hero-stats .lbl { font-size: .9rem; color: var(--muted); }

/* hero visual: floating cards */
.hero-visual { position: relative; min-height: 420px; }
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.float-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem; color: #fff;
}
.float-card .t { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.float-card .s { font-size: .8rem; color: var(--muted); }

.fc-main {
  position: relative;
  margin: 0 auto;
  width: 86%;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  padding: 1.75rem;
  display: block;
  border-radius: var(--radius-lg);
}
.fc-main .big { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.fc-main .cap { opacity: .9; font-size: .92rem; }
.fc-main .bar { height: 8px; border-radius: 100px; background: rgba(255,255,255,.25); margin-top: 1rem; overflow: hidden; }
.fc-main .bar > i { display: block; height: 100%; width: 78%; background: #fff; border-radius: 100px; }

.fc-a { top: -18px; right: -10px; }
.fc-a .ic { background: var(--accent); }
.fc-b { bottom: -10px; left: -18px; }
.fc-b .ic { background: var(--brand); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-a { animation: floaty 5s ease-in-out infinite; }
.fc-b { animation: floaty 6s ease-in-out infinite .8s; }

/* trusted-by strip */
.trusted { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.trusted .label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trusted .logos { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; opacity: .6; }
.trusted .logos span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }

/* -------------------- 6. Cards (services / features) -------------------- */
.card-service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card-service::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-service:hover::before { transform: scaleX(1); }
.card-service .ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.25rem;
  transition: background .25s ease, color .25s ease;
}
.card-service:hover .ic { background: var(--grad-brand); color: #fff; }
.card-service h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card-service p { color: var(--muted); margin-bottom: 1rem; }
.card-service .more { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--brand-600); }
.card-service .more i { transition: transform .2s ease; }
.card-service:hover .more i { transform: translateX(4px); }

/* feature mini */
.feature-mini { display: flex; gap: 1rem; }
.feature-mini .ic {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.2rem;
}
.feature-mini h4 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature-mini p { color: var(--muted); font-size: .95rem; margin: 0; }

/* check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; color: var(--ink-soft); font-weight: 500; }
.check-list li i { color: var(--brand); margin-top: .25rem; }

/* -------------------- 7. About / media -------------------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-brand);
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}
.media-frame .ph-ic { font-size: 3rem; opacity: .85; }
.stat-badge {
  position: absolute;
  bottom: 20px; right: -16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: .9rem;
}
.stat-badge .num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--ink); line-height: 1; }
.stat-badge .lbl { font-size: .82rem; color: var(--muted); }
.stat-badge .ring {
  width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(var(--brand) 0 78%, var(--brand-50) 78% 100%);
  display: grid; place-items: center;
}
.stat-badge .ring::after { content: "98%"; font-family: var(--font-display); font-weight: 700; font-size: .7rem; color: var(--brand-600); background: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }

/* -------------------- 8. Stats band -------------------- */
.stat-tile { text-align: center; padding: 1rem; }
.stat-tile .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,4vw,3rem); line-height: 1; }
.stat-tile .num.on-dark { color: #fff; }
.stat-tile .lbl { color: var(--muted); margin-top: .35rem; }
.stat-tile .lbl.on-dark { color: rgba(255,255,255,.7); }

/* -------------------- 9. Process steps -------------------- */
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  margin-bottom: 1.1rem;
}
.step:nth-child(2) .n,
.process-col:nth-child(2) .n { background: var(--brand); }
.process-col:nth-child(3) .n { background: var(--accent); }
.step h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* -------------------- 10. Page header (interior pages) -------------------- */
.page-header {
  position: relative;
  padding: 140px 0 70px;
  background:
    radial-gradient(50% 60% at 80% 0%, rgba(138,90,50,.13), transparent 60%),
    radial-gradient(50% 60% at 15% 10%, rgba(176,138,46,.20), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.page-header h1 { color: #fff; font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 800; }
.page-header .lead-2 { color: rgba(255,255,255,.72); }
.breadcrumb-c { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.breadcrumb-c a { color: rgba(255,255,255,.7); }
.breadcrumb-c a:hover { color: #fff; }
.breadcrumb-c .sep { color: rgba(255,255,255,.4); margin: 0 .5rem; }
.breadcrumb-c .cur { color: var(--accent); }

/* -------------------- 11. Values / mission cards -------------------- */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; margin-bottom: 1rem; background: var(--grad-brand); }
.value-card h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.value-card p { color: var(--muted); margin: 0; }

/* -------------------- 12. Contact -------------------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  background: var(--bg);
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(156,122,34,.22);
  background: #fff;
}
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-info-card .ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.25rem; }
.contact-info-card h5 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-info-card p, .contact-info-card a { color: var(--muted); margin: 0; font-size: .95rem; }
.contact-info-card a:hover { color: var(--brand-600); }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
  background:
    repeating-linear-gradient(45deg, #e9eef5 0 14px, #eef2f8 14px 28px);
  display: grid; place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
}
.form-note { font-size: .85rem; color: var(--muted); }
.alert-sent {
  display: none;
  background: var(--brand-50);
  border: 1px solid #E9D9A6;
  color: var(--brand-700);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.alert-sent.show { display: block; }

/* -------------------- 13. CTA band -------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.12); filter: blur(2px);
}
.cta-band::before { width: 260px; height: 260px; top: -120px; right: -60px; }
.cta-band::after { width: 200px; height: 200px; bottom: -110px; left: -40px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem,3.5vw,2.6rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-white { background: #fff; color: var(--brand-700); }
.cta-band .btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* -------------------- 14. Footer -------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 80px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; display: inline-flex; align-items: center; }
.footer-brand .logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin-right: .55rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .95rem; transition: padding-left .2s ease, color .2s ease; }
.footer-links a:hover { padding-left: 5px; }
.social-row { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-news .form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer-news .form-control::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 24px 0; font-size: .9rem; }

/* -------------------- 15. Reveal-on-scroll animation -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fc-a, .fc-b { animation: none; }
  html { scroll-behavior: auto; }
}

/* -------------------- 16. Responsive -------------------- */
@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 80px; text-align: center; }
  .hero .hero-sub, .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 3rem; min-height: 340px; }
  .site-nav .navbar-collapse {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: .75rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav .nav-link::after { display: none; }
  .stat-badge { right: 10px; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 2.2rem; }
  .float-card { display: none; }
  .fc-main { width: 100%; }
  .contact-form { padding: 1.75rem; }
}

/* =====================================================================
   17. WhatsApp + Captcha (pagina contatti)
   ===================================================================== */
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.30); }
.btn-whatsapp:hover { background: #1EBE57; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37,211,102,.38); }

.wa-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.wa-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(37,211,102,.18); filter: blur(12px); right: -80px; top: -80px;
}
.wa-card > * { position: relative; z-index: 1; }
.wa-card .wa-ic {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.9rem; margin-bottom: 1.25rem;
}
.wa-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .6rem; }
.wa-card p { color: rgba(255,255,255,.72); }
.wa-card .wa-number { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.wa-card .wa-meta { font-size: .9rem; color: rgba(255,255,255,.6); }

/* Captcha */
.captcha-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.captcha-code {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .45rem;
  color: var(--ink); background: var(--bg);
  background-image: repeating-linear-gradient(45deg, rgba(156,122,34,.12) 0 6px, transparent 6px 13px);
  padding: .55rem 1rem .55rem 1.4rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); user-select: none; -webkit-user-select: none;
  transform: skewX(-7deg); position: relative; overflow: hidden; min-width: 150px; text-align: center;
}
.captcha-code::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 54%; height: 2px;
  background: rgba(138,90,50,.6); transform: rotate(-4deg);
}
.captcha-refresh {
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border);
  background: #fff; color: var(--brand-600); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
  transition: transform .25s ease, color .2s ease, border-color .2s ease;
}
.captcha-refresh:hover { color: var(--accent-600); border-color: var(--accent); transform: rotate(90deg); }
.captcha-error {
  display: none; color: var(--accent-600); font-weight: 600; font-size: .9rem; margin-top: .5rem;
}
.captcha-error.show { display: block; }

/* =====================================================================
   18. Brand logo (navbar + footer)
   ===================================================================== */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-right: .6rem;
  filter: drop-shadow(0 4px 10px rgba(191, 138, 24, .38));
  transition: transform .25s ease, filter .25s ease;
}
.navbar-brand:hover .brand-logo {
  transform: translateY(-1px) rotate(-3deg);
  filter: drop-shadow(0 6px 14px rgba(191, 138, 24, .5));
}
.footer-brand .brand-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
}

/* =====================================================================
   19. Logo dentro la media-frame (home > chi siamo)
   ===================================================================== */
.media-frame--logo {
  background: radial-gradient(120% 120% at 50% 32%, #2C2517 0%, var(--ink) 72%);
}
.media-frame .frame-logo {
  width: 80%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .55));
  animation: floaty 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .media-frame .frame-logo { animation: none; }
}

/* =====================================================================
   20. Legal pages (privacy / cookie / termini)
   ===================================================================== */
.legal { max-width: 840px; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--brand-600); font-weight: 600; }
.legal a:hover { color: var(--accent-600); }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal .note {
  background: var(--brand-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}
.legal .table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.legal th, .legal td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--brand-50); font-family: var(--font-display); color: var(--ink); }
