/* ============================================
   Asso Servizi — Consulenti Aziendali
   Static rebuild — palette & type from original
   ============================================ */

/* Font self-hosted (subset latin, font-display: swap) — inclusi qui per
   evitare una richiesta CSS render-blocking di terze parti. Inter e' variable
   (un file copre 400-700); Poppins a istanze statiche 400/500/600/700. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --blue: #457B9D;          /* primary */
  --teal-light: #A8DADC;    /* light section bg */
  --navy: #1D3557;          /* headings */
  --navy-deep: #12204F;     /* gradients end */
  --ink: #0D1B2B;           /* dark cards */
  --cyan: #6CC1D9;          /* gradient start */
  --mint: #C9E8E6;          /* form card */
  --text: #2b3a4a;
  --white: #ffffff;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

/* height:auto -> le immagini con attributi width/height scalano in proporzione
   (best-practices image-aspect-ratio). I background full-bleed .video-bg/.hero-media
   restano height:100% perche' regole piu' specifiche. */
img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }

h1 { font-size: 44px; font-weight: 600; }
h2 { font-size: 38px; font-weight: 600; }
h3 { font-size: 32px; font-weight: 600; }

a { color: inherit; }

.container { max-width: 1224px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 32px;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  padding: 14px 0;
  position: relative;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { width: 240px; height: auto; }

.main-nav ul { display: flex; gap: 36px; list-style: none; }
.main-nav a {
  text-decoration: none;
  color: #1d1e20;
  font-size: 15px;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { border-bottom: 2px solid var(--navy); }

/* mobile nav */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle-label span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- HOME: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  text-align: center;
}
.hero-media, .video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 980px; margin: 0 auto 36px; }
.hero .hero-sub {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto 40px;
}
.hero .hero-text {
  background: rgba(0,0,0,.5);
  color: #f1f5f8;
  font-size: 14.5px;
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 22px 28px;
}

/* ---------- HOME: servizi chiave ---------- */
.services-strip {
  background: linear-gradient(152deg, var(--cyan) 0%, var(--blue) 45%, var(--navy-deep) 100%);
  padding: 70px 0 90px;
}
.services-strip h2 { color: var(--white); text-align: center; margin-bottom: 48px; font-size: 34px; }
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 43, .78);
}
.service-card > * { position: relative; }
.service-card .card-title {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  padding: 18px 14px;
  background: rgba(13, 27, 43, .55);
}
.service-card .card-body { padding: 18px 18px 22px; text-align: center; }
.service-card .card-body strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 10px;
}
.service-card .card-body p { color: #dbe5ec; font-size: 13.5px; margin-bottom: 14px; }
.service-card .card-body a { color: var(--white); font-size: 13px; }

/* ---------- HOME: perché scegliermi ---------- */
.why {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}
.why .overlay { position: absolute; inset: 0; background: rgba(10, 25, 35, .45); }
.why .container { position: relative; }
.why h2 { color: var(--white); margin-bottom: 10px; }
.why .why-sub { color: var(--white); font-weight: 600; font-size: 14px; margin-bottom: 44px; }
.cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  max-width: 1060px;
  margin: 0 auto 48px;
}
.why-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 26px 28px;
}
.why-card::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.why-card > * { position: relative; }
.why-card h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.why-card p { color: #e6edf2; font-size: 14px; }

/* ---------- HOME: casi di successo ---------- */
.testimonials {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.testimonials .overlay { position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.testimonials .container { position: relative; }
.testimonials h2 { text-align: center; margin-bottom: 48px; }
.testimonial-card {
  background: rgba(13, 27, 43, .88);
  border-radius: 10px;
  padding: 28px 30px;
  color: #eef3f7;
  display: flex;
  flex-direction: column;
}
.testimonial-card .stars {
  color: #ffd24a;
  text-align: center;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.testimonial-card .quote { font-size: 14px; text-align: center; flex: 1; }
.testimonial-card .who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 13.5px;
  text-align: center;
}
.testimonial-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .who strong { color: var(--white); }

/* ---------- Contact section (home) ---------- */
.contact-strip {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.contact-strip .overlay { position: absolute; inset: 0; background: rgba(18, 48, 61, .68); }
.contact-strip .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-strip h3 { color: var(--white); font-size: 34px; margin-bottom: 18px; }
.contact-strip .contact-intro { color: #eef5f8; font-size: 15px; }

/* leggibilità su sfondo animato: glow bianco su titoli e grassetti,
   alone scuro dietro il testo corrente */
.contact-strip h3,
.contact-strip .meeting-aside .step strong,
.contact-strip .aside-contact strong,
.contact-strip .meeting-aside .step-n {
  text-shadow: 0 0 16px rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .6);
}
.contact-strip .contact-intro,
.contact-strip .meeting-aside .step p,
.contact-strip .aside-contact {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--mint);
  border-radius: 22px;
  padding: 32px 30px;
}
.form-card label { display: block; font-size: 13px; color: var(--navy); margin: 14px 0 6px; font-weight: 500; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card textarea {
  width: 100%;
  border: 1px solid #9db8c6;
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-card fieldset { border: none; margin-top: 18px; }
.form-card legend { font-size: 13px; color: var(--navy); font-weight: 500; margin-bottom: 8px; }
.form-card .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  margin: 4px 0;
  color: var(--text);
}
.form-card .check input { width: auto; }
.form-card button { margin-top: 22px; }

/* ============================================
   PAGE: Servizi
   ============================================ */
.page-hero {
  background: var(--teal-light);
  padding: 64px 0;
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero img { border-radius: 6px; width: 100%; object-fit: cover; }
.page-hero .page-hero-text { text-align: center; }
.page-hero h1 { font-size: 48px; margin-bottom: 22px; }
.page-hero .lead { font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 22px; }
.page-hero p { font-size: 14.5px; }

.service-row { padding: 72px 0; }
.service-row:nth-child(even) { background: var(--teal-light); }
.service-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-row.reverse .text { order: 2; }
.service-row.reverse .media { order: 1; }
.service-row .text { text-align: center; }
.service-row h2 { font-size: 40px; margin-bottom: 24px; }
.service-row p { font-size: 14.5px; max-width: 460px; margin: 0 auto 28px; }
.service-row p strong { color: var(--navy); }
.service-row img { border-radius: 6px; width: 100%; height: 380px; object-fit: cover; }

/* ============================================
   PAGE: Chi Sono
   ============================================ */
.about { padding: 64px 0 48px; }
.about .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
  /* la colonna foto arriva fino al bordo destro dello schermo */
  max-width: none;
  padding-right: 0;
  padding-left: max(24px, calc((100vw - 1224px) / 2));
}
.about h1 { font-size: 42px; margin-bottom: 26px; }
.about h2 { font-size: 36px; margin: 36px 0 18px; }
.about p { font-size: 14.5px; color: #3c4f63; }
.about .photo img { width: 100%; border-radius: 4px; }
.about .btn { margin-top: 30px; }

/* foto fissa a destra mentre il testo scorre */
.photo-sticky img {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: contain;
  object-position: right bottom;
  border-radius: 0;
}

/* Richiedi il tuo incontro (chi sono / contatti) */
.meeting { padding: 56px 0 80px; }
.about .meeting { padding: 56px 0 24px; }
.meeting h3 { font-size: 34px; margin-bottom: 18px; }
.meeting .intro { font-size: 14.5px; margin-bottom: 28px; max-width: 880px; }
.meeting .intro strong { color: var(--blue); }
.meeting .contact-lines { margin-bottom: 32px; }
.meeting .contact-lines p { font-size: 14px; margin-bottom: 2px; }
.meeting .contact-lines .lbl { color: var(--blue); font-weight: 700; margin-top: 12px; }
.meeting .form-card { max-width: 560px; }

/* gradient variant (contatti page) */
.meeting-gradient {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--blue) 45%, var(--navy-deep) 100%);
  padding: 64px 0 90px;
  text-align: center;
}
.meeting-gradient h3 { color: var(--white); font-size: 34px; margin-bottom: 20px; }
.meeting-gradient .intro { color: #eef5f8; font-size: 14px; max-width: 1000px; margin: 0 auto 40px; }
.meeting-gradient .intro strong { color: var(--white); }
.meeting-gradient .form-card { max-width: 540px; margin: 0; text-align: left; }

/* contatti: form a sinistra + pannello informativo a destra */
.meeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}
.meeting-aside { color: #eef5f8; }
.meeting-aside h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
}
.meeting-aside .step {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.meeting-aside .step-n {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.meeting-aside .step strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 4px;
}
.meeting-aside .step p { font-size: 13.5px; margin: 0; color: #dcebf1; }
.aside-divider {
  height: 1px;
  background: rgba(255, 255, 255, .3);
  margin: 28px 0;
}
.aside-contact { font-size: 14px; margin-bottom: 8px; color: #dcebf1; }
.aside-contact strong { color: var(--white); }
.aside-contact a { color: var(--white); text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: #25D366;
  color: var(--white);
}
/* Riga CTA con bottoni affiancati di altezza uniforme (es. pagina Grazie) */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: stretch; margin: 22px 0 0; }
.cta-row .btn { margin-top: 0; }

/* ============================================
   PAGE: Contatti
   ============================================ */
.contact-hero { padding: 64px 0 48px; text-align: center; }
.contact-hero h1 { font-size: 44px; margin-bottom: 14px; }
.contact-hero h3 { font-size: 30px; margin-bottom: 24px; }
.contact-hero p { font-size: 14.5px; max-width: 760px; margin: 0 auto 6px; }

.other-contacts { padding: 72px 0; }
.other-contacts .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.other-contacts h3 { font-size: 30px; margin-bottom: 20px; }
.other-contacts p.lead-bold { font-weight: 700; color: var(--navy); font-size: 14px; margin: 16px 0 8px; }
.other-contacts ul { list-style: disc; padding-left: 22px; }
.other-contacts li { font-size: 14px; margin: 6px 0; }
.other-contacts li strong { color: var(--navy); }
.other-contacts img { border-radius: 6px; width: 100%; object-fit: cover; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 40%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 56px 0 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr 1fr 0.5fr;
  gap: 36px;
  align-items: start;
}
.site-footer .footer-logo img { width: 230px; height: auto; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.site-footer p, .site-footer a { font-size: 13.5px; color: #eaf3f7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-menu a { display: block; margin-bottom: 10px; }
.site-footer .strongline { font-weight: 700; color: var(--white); margin-top: 10px; }
.site-footer .socials { display: flex; flex-direction: column; gap: 14px; }
.site-footer .socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.site-footer .socials svg { width: 24px; height: 24px; fill: var(--white); }
.footer-bottom {
  margin-top: 44px;
  background: rgba(8, 16, 40, .55);
  padding: 14px 0;
  text-align: center;
  font-size: 12.5px;
  color: #dce8ef;
}
.footer-legal { margin-top: 8px; }
.footer-bottom a { color: #dce8ef; font-size: 12.5px; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-legal span { margin: 0 6px; opacity: .45; }
.iubenda-cs-preferences-link { cursor: pointer; }
.form-privacy { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--navy); opacity: .72; }
.form-privacy a { color: inherit; text-decoration: underline; }

/* ============================================
   Effetti
   ============================================ */

/* reveal allo scroll: la classe .reveal la aggiunge js/effects.js,
   quindi senza JavaScript tutto resta visibile */
.reveal { opacity: 0; }
.reveal.in { animation: rise .7s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* hero: ingresso in sequenza al caricamento */
/* H1 = probabile elemento LCP: entrata solo su transform, niente opacity:0
   che ne ritarderebbe il Largest Contentful Paint. */
@keyframes rise-lcp { from { transform: translateY(24px); } to { transform: none; } }
.hero h1 { animation: rise-lcp .8s ease both; }
.hero .hero-sub { animation: rise .8s ease .15s both; }
.hero .hero-text { animation: rise .8s ease .3s both; }
.hero .btn { animation: rise .8s ease .45s both; }

/* card: sollevamento al passaggio del mouse */
.service-card, .why-card, .testimonial-card {
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover, .why-card:hover, .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13, 27, 43, .4), 0 0 28px rgba(108, 193, 217, .3);
}

/* tilt 3D + riflesso che segue il cursore (coordinate da js/effects.js) */
.tilt { will-change: transform; }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168, 218, 220, .28),
    transparent 65%
  );
}
.tilt:hover::after { opacity: 1; }

/* bottoni: lampo di luce in diagonale */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.btn:hover::before { animation: btn-shine .75s ease; }

@keyframes btn-shine {
  from { left: -80%; }
  to   { left: 130%; }
}

/* social footer: glow al passaggio */
.site-footer .socials a { transition: transform .25s ease, filter .25s ease; }
.site-footer .socials a:hover {
  transform: translateY(-4px) scale(1.18);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .65));
}

/* foto servizi: zoom morbido */
.service-row .media { overflow: hidden; border-radius: 6px; }
.service-row .media img { transition: transform .6s ease; }
.service-row .media:hover img { transform: scale(1.04); }

/* menu: sottolineatura animata */
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.active::after { display: none; }

/* evidenziazione animata sulla frase chiave dell'hero */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  animation: hl-in .9s ease 1.2s both;
}
@keyframes hl-in { to { transform: scaleX(1); } }

/* blob luminosi fluttuanti dietro le card servizi */
.services-strip { position: relative; overflow: hidden; }
.services-strip .container { position: relative; }
.services-strip::before,
.services-strip::after {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 218, 220, .95), transparent 70%);
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.services-strip::before { left: -160px; top: -180px; }
.services-strip::after {
  right: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(108, 193, 217, .9), transparent 70%);
  animation-duration: 21s;
  animation-direction: alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(140px, 70px) scale(1.18); }
}

/* striscia numeri animati */
.stats-strip { background: var(--white); padding: 70px 0 64px; }
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* accessibilità: niente animazioni se l'utente le ha ridotte */
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .hero-sub, .hero .hero-text, .hero .btn, .wa-float::before,
  .services-strip::before, .services-strip::after { animation: none !important; }
  .hl::after { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
/* pulse su un ring dedicato: anima solo transform+opacity (compositabile,
   nessun repaint del box-shadow sul thread principale) */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .45);
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
  will-change: transform, opacity;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 1; }
  70%  { transform: scale(1.9);  opacity: 0; }
  100% { transform: scale(1.9);  opacity: 0; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 420px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .socials { flex-direction: row; }
}

@media (max-width: 760px) {
  .nav-toggle-label { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav li { padding: 10px 0; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .site-header .logo img { width: 190px; }

  .hero { padding: 64px 0 80px; }
  .hero .hero-sub { font-size: 20px; }
  .cards-4 { grid-template-columns: 1fr; }
  .cards-2x2 { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .stat-num { font-size: 44px; }
  .testimonials .cards-2x2 { grid-template-columns: 1fr; }
  .contact-strip .container,
  .page-hero .container,
  .service-row .container,
  .about .container,
  .other-contacts .container { grid-template-columns: 1fr; }
  .service-row.reverse .text { order: 1; }
  .service-row.reverse .media { order: 2; }
  .service-row img { height: 260px; }
  .page-hero h1 { font-size: 38px; }
  /* Chi Sono mobile: foto come card gradiente, niente bianco vuoto */
  .photo-sticky {
    order: -1;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin: 6px 0 26px;
    background: linear-gradient(165deg, var(--teal-light) 0%, var(--blue) 55%, var(--navy-deep) 100%);
  }
  .photo-sticky::before {
    content: "";
    position: absolute;
    width: 240px; height: 240px;
    top: -70px; right: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .4), transparent 70%);
    filter: blur(8px);
  }
  .photo-sticky::after {
    content: "";
    position: absolute;
    width: 180px; height: 180px;
    bottom: -50px; left: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 218, 220, .5), transparent 70%);
    filter: blur(10px);
  }
  .photo-sticky img {
    position: relative;
    z-index: 1;
    height: 400px;
    max-height: none;
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 28px rgba(13, 27, 43, .45));
  }
  .about .container { max-width: none; padding: 0 24px; }
  .meeting-grid { grid-template-columns: 1fr; gap: 40px; }

  /* footer mobile: compatto e centrato */
  .site-footer { text-align: center; }
  .site-footer .footer-grid { justify-items: center; gap: 32px; }
  .site-footer .footer-logo img { width: 150px; margin: 0 auto; }
  .site-footer .socials { flex-direction: row; justify-content: center; gap: 26px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
