/* ==========================================================================
   Studio A & M STP — design system
   Ispirato allo stile di studiogalesposta.com (navy + corallo, card pulite)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font self-hosted (Kumbh Sans + Mulish, licenza SIL Open Font License 1.1).
   Serviti dal nostro dominio invece che dal CDN di Google: nessun indirizzo IP
   dei visitatori viene trasmesso a terzi (requisito GDPR).
   Sono font variabili: un solo file copre tutti i pesi dichiarati.
   -------------------------------------------------------------------------- */
@font-face{
  font-family: 'Kumbh Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/kumbh-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Kumbh Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/kumbh-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --navy: #22253d;
  --navy-2: #2c3157;
  --coral: #ff6554;
  --coral-dark: #e94f3d;
  --bg-light: #f4f5fa;
  --text-main: #22253d;
  --text-muted: #565b7a;
  --border-muted: #d7dae8;
  --white: #ffffff;
  --whatsapp: #25d366;
  --shadow: 0 20px 45px rgba(34, 37, 61, 0.10);
  --radius: 16px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Mulish', Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4{
  font-family: 'Kumbh Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: var(--white);
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

.wrapper{
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75em;
}

section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }

.section-head{
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head p{ color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-coral{
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(255, 101, 84, 0.35);
}
.btn-coral:hover{ background: var(--coral-dark); }

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); }

.btn-outline-navy{
  background: transparent;
  border-color: var(--border-muted);
  color: var(--navy);
}
.btn-outline-navy:hover{ border-color: var(--coral); color: var(--coral); }

.btn-whatsapp{
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover{ background: #1fb355; }

/* ---------- Header ---------- */
.site-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
}
.site-header .wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{ height: 48px; width: auto; border-radius: 6px; background: rgba(255,255,255,0.92); padding: 4px 10px; }

.main-nav{ display: flex; align-items: center; gap: 36px; }
.main-nav ul{ display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.main-nav a{
  color: var(--white);
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0.92;
}
.main-nav a:hover{ opacity: 1; color: var(--coral); }
.main-nav .current a{ color: var(--coral); }

.header-cta{ display: flex; align-items: center; gap: 18px; }
.phone-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--white);
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.phone-pill svg{ flex-shrink: 0; }

.menu-toggle{
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(24,26,46,0.88) 0%, rgba(24,26,46,0.62) 48%, rgba(34,37,61,0.4) 100%), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero .wrapper{ position: relative; z-index: 2; padding-top: 140px; padding-bottom: 90px; }
.hero-content{ max-width: 680px; }
.hero h1{ color: var(--white); }
.hero p.lead{ font-size: 1.15rem; color: rgba(255,255,255,0.86); max-width: 560px; }
.hero-actions{ display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Inner page banner (Servizi / Contattaci) */
.page-banner{
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(24,26,46,0.88) 0%, rgba(24,26,46,0.65) 55%, rgba(34,37,61,0.45) 100%), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-banner .wrapper{ padding-top: 140px; padding-bottom: 56px; }
.page-banner h1{ color: var(--white); }
.breadcrumb{ font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 8px; }
.breadcrumb a{ color: rgba(255,255,255,0.9); }
.breadcrumb a:hover{ color: var(--coral); }

/* ---------- Chi siamo ---------- */
.about{ background: var(--white); }
.about-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-grid p{ color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 55px rgba(34,37,61,0.16); }
.service-icon{
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.service-card h3{ margin-bottom: 4px; }
.service-card p{ color: var(--text-muted); font-size: 0.97rem; flex-grow: 1; }
.service-card .card-link{
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.services-cta{ text-align: center; margin-top: 48px; }

/* ---------- Stats band ---------- */
.stats-band{
  background: var(--navy);
  color: var(--white);
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number{
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--coral);
}
.stat-label{ color: rgba(255,255,255,0.75); font-family: 'Kumbh Sans', sans-serif; font-size: 0.95rem; margin-top: 6px; }

/* ---------- Quote ---------- */
.quote-section{ background: var(--bg-light); text-align: center; }
.quote-section blockquote{
  font-family: 'Kumbh Sans', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto 18px;
}
.quote-section cite{ color: var(--coral); font-style: normal; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  text-align: center;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 30px; }
.cta-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Services detail list (servizi page) ---------- */
.services-detail{ display: grid; gap: 28px; }
.service-block{
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 34px 36px;
  border: 1px solid var(--border-muted);
}
.service-block h3{ color: var(--coral); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.service-block p{ color: var(--text-muted); }
.service-block ul{ margin: 12px 0 0; padding-left: 20px; color: var(--text-muted); }
.service-block li{ margin-bottom: 6px; }

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info h3{ color: var(--white); }
.contact-info .info-row{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info .info-row svg{ flex-shrink: 0; color: var(--coral); margin-top: 3px; }
.contact-info .info-row div{ color: rgba(255,255,255,0.85); font-size: 0.97rem; }
.contact-info .info-row strong{ display: block; color: var(--white); font-family: 'Kumbh Sans', sans-serif; margin-bottom: 2px; }
.contact-info .btn-whatsapp{ margin-top: 8px; width: 100%; justify-content: center; }

.contact-form{
  background: var(--white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-row input, .form-row textarea{
  width: 100%;
  border: 1.5px solid var(--border-muted);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-light);
  transition: border-color 0.18s ease;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}
.contact-form .btn-coral{ width: 100%; justify-content: center; border: none; }
.form-note{ font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* Honeypot anti-spam: invisibile agli utenti, compilato dai bot.
   Niente display:none, che alcuni bot riconoscono ed evitano. */
.hp-field{
  position: absolute;
  left: -5000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Consenso privacy */
.form-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.form-consent input[type="checkbox"]{
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
  cursor: pointer;
}
.form-consent label{
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  margin: 0;
}
.form-consent a{ color: var(--coral); text-decoration: underline; }

/* ---------- Pagina testuale (privacy) ---------- */
.prose{ max-width: 760px; }
.prose h2{ font-size: 1.4rem; margin-top: 40px; }
.prose h2:first-child{ margin-top: 0; }
.prose p, .prose li{ color: var(--text-muted); }
.prose ul{ padding-left: 20px; }
.prose li{ margin-bottom: 8px; }
.prose a{ color: var(--coral); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4{ color: var(--white); font-size: 1rem; margin-bottom: 16px; }
/* width:auto obbligatorio: gli attributi width/height sull'<img> (che servono a
   evitare il layout shift) valgono come regole CSS e senza questo il logo
   verrebbe stirato a 1210px di larghezza. */
.footer-brand img{ height: 44px; width: auto; margin-bottom: 14px; border-radius: 6px; background: rgba(255,255,255,0.92); padding: 4px 10px; display: inline-block; }
.footer-brand p{ color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 320px; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 10px; font-size: 0.94rem; }
.footer-grid a:hover{ color: var(--coral); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float{
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}
.wa-float:hover{ transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .services-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; gap: 36px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 780px){
  .main-nav ul, .header-cta .phone-pill{ display: none; }
  .menu-toggle{ display: inline-flex; }
  .site-header.nav-open .main-nav{
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
  }
  .site-header.nav-open .main-nav ul{
    flex-direction: column;
    gap: 18px;
    display: flex;
  }
  .hero .wrapper, .page-banner .wrapper{ padding-top: 120px; }
  section{ padding: 60px 0; }
}
