/* Electrical Core SNC — stylesheet */

/* Font self-hosted (SIL OFL 1.1): Poppins, Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-500.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-500.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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-600.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-600.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-700.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-700.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: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-800.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-800.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 {
  --color-red: #E52E35;
  --color-red-dark: #BD2227;
  --color-dark: #203340;
  --color-dark-soft: #304452;
  --color-white: #FFFFFF;
  --color-off: #F7F5F3;
  --color-border: #E7E2DD;
  --color-text: #2B2B2B;
  --color-text-muted: #5C6066;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(35, 39, 43, 0.06);
  --shadow-md: 0 12px 30px rgba(35, 39, 43, 0.12);
  --container-w: 1160px;
  --section-y: clamp(56px, 7vw, 88px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overscroll-behavior-x: none; }

/* Scroll / load reveal animations — stile "Animate.css" come ecaimpianti.it:
   keyframe dedicate (non semplici transizioni) così non entrano mai in
   conflitto con le transition già presenti su hover di bottoni/card. */
@keyframes ecFadeInUp {
  from { opacity: 0; transform: translate3d(0, 46px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ecZoomIn {
  from { opacity: 0; transform: scale3d(.4, .4, .4); }
  50%  { opacity: 1; }
  to   { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes ecBounceIn {
  0%   { opacity: 0; transform: scale3d(.3, .3, .3) translate3d(0, 30px, 0); }
  35%  { opacity: 1; transform: scale3d(1.08, 1.08, 1.08) translate3d(0, -6px, 0); }
  55%  { transform: scale3d(.94, .94, .94) translate3d(0, 2px, 0); }
  75%  { transform: scale3d(1.03, 1.03, 1.03); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
.reveal { opacity: 0; }
.reveal.in { animation: ecFadeInUp .9s ease both; }
.reveal.reveal-zoom.in { animation-name: ecZoomIn; }
.reveal.reveal-bounce.in { animation: ecBounceIn 1.1s cubic-bezier(.2,.8,.3,1) both; }
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.in > * { animation: ecZoomIn .9s ease both; }
.reveal-stagger.in > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: .1s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: .2s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: .3s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; animation: none !important; }
}

/* Topbar */
.topbar {
  background: var(--color-dark);
  color: #cfd3d7;
  font-size: .8rem;
  font-weight: 500;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-item, .topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #cfd3d7;
}
.topbar a:hover { color: #fff; }
.topbar-item svg, .topbar a svg { width: 13px; height: 13px; opacity: .85; fill: none; stroke: currentColor; stroke-width: 2; }
.topbar-right { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a.topbar-phone {
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.topbar-phone svg { color: #fff; opacity: 1; }
.topbar a.topbar-phone:hover { color: var(--color-off); }
@media (max-width: 720px) {
  .topbar { padding: 7px 0; }
  /* Su mobile email e telefono restano affiancati sulla stessa riga, come il sito di riferimento */
  .topbar-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0;
    gap: 8px;
  }
  .topbar-inner > .topbar-item {
    font-size: .72rem;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .topbar-inner > .topbar-item span { overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { gap: 14px; flex-wrap: nowrap; flex-shrink: 0; }
  .topbar-right a.topbar-phone { font-size: .78rem; }
  .topbar-item svg, .topbar-right svg { width: 12px; height: 12px; flex-shrink: 0; }
}

/* Telefono piccolo: numeri un po' più compatti, l'email si accorcia da sola. */
@media (max-width: 480px) {
  .topbar-right a.topbar-phone { font-size: .74rem; }
  .topbar-right a.topbar-phone { gap: 4px; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--color-text-muted); }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-red);
  font-size: .8rem;
  margin: 0 0 .6em;
}
.eyebrow.center { text-align: center; }

.section-title { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.section-title.center { text-align: center; }
.section-lead.center { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.3em;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-dark); }

.btn-lg { padding: .85em 1.6em; font-size: 1rem; }

.btn .icon { width: 1.1em; height: 1.1em; fill: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-red);
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn) {
  font-weight: 600;
  color: #fff;
  font-size: .95rem;
  position: relative;
}
.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #fff;
  transition: width .2s ease;
}
.primary-nav a:not(.btn):hover::after { width: 100%; }

.nav-cta {
  background: #fff;
  color: var(--color-red);
}
.nav-cta:hover {
  background: var(--color-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-off) 0%, var(--color-white) 100%);
  padding: clamp(32px, 6vw, 72px) 0 96px;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Floating quick-contact card, overlapping the hero */
.contact-strip { position: relative; z-index: 3; margin-top: -58px; }
.contact-strip-card {
  background: linear-gradient(135deg, var(--color-dark), #14171a);
  border-radius: var(--radius-lg, 20px);
  padding: 32px 36px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.5fr;
  gap: 26px;
  align-items: center;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
}
.contact-strip-card h3 { font-size: 1.15rem; color: #fff; margin: 6px 0 4px; }
.contact-strip-card .col { display: flex; flex-direction: column; gap: 8px; }
.contact-strip-card .cs-label { font-size: .82rem; color: #aeb3b8; font-weight: 500; }
.contact-strip-card .cs-phone {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff;
}
.contact-strip-card .cs-phone svg { width: 18px; height: 18px; color: var(--color-red); flex-shrink: 0; }
.cs-whatsapp-col { align-items: flex-start; }
.cs-whatsapp-pair { display: flex; flex-wrap: wrap; gap: 18px; }
.cs-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px;
  margin: -8px;
  border-radius: 14px;
  transition: background .2s ease;
}
.cs-whatsapp:hover { background: rgba(255,255,255,.06); }
.cs-whatsapp img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}
.cs-whatsapp .cs-phone svg { color: #25d366; }
@media (max-width: 880px) {
  .contact-strip-card { grid-template-columns: 1fr; text-align: left; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}
.hero-lead { font-size: 1.05rem; max-width: 560px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-dark-soft);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  display: inline-block;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg, var(--radius));
  box-shadow: var(--shadow-md);
}

/* Services */
.services { padding: clamp(40px, 4.5vw, 56px) 0 var(--section-y); background: var(--color-white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #D3CDC6;
}
.service-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #EAE5DF;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.service-card:hover .service-img {
  transform: scale(1.06);
}
.service-badge-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  z-index: 2;
  transition: transform .2s ease;
}
.service-card:hover .service-badge-icon {
  transform: scale(1.08);
}
.service-badge-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.service-content {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-content h3 {
  font-size: 1.15rem;
  margin-bottom: .45em;
  color: var(--color-dark);
}
.service-content p {
  margin: 0;
  font-size: .92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* About */
.about { position: relative; background: var(--color-dark); padding: calc(var(--section-y) + 40px) 0; margin: 24px 0; }
.about::before, .about::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 48px;
  background: var(--color-off);
}
.about::before { top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.about::after { bottom: 0; clip-path: polygon(0 100%, 100% 100%, 0 0); }
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.about-copy { max-width: 680px; }
.about h2, .about p { color: #fff; }
.about p { color: #C9CDD1; }
.about .eyebrow { color: #FF7A6B; }

.about-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  background: #1e242b;
  aspect-ratio: 4 / 3;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  padding: 20px 16px 12px;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 16px;
  align-items: start;
}
.feature-list li::before {
  content: '';
  background: var(--color-red);
  border-radius: 4px;
  align-self: stretch;
}
.feature-text { display: block; }
.feature-list strong { display: block; color: #fff; font-family: var(--font-heading); margin-bottom: 2px; }
.feature-list span { color: #B7BCC2; font-size: .93rem; }

/* Area (Dove siamo) */
.area { padding: var(--section-y) 0; background: var(--color-off); }
.area-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.province-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 24px;
}
.province-pill {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.province-pill strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-dark);
  font-size: .92rem;
  margin-bottom: 4px;
}
.province-pill strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
  display: inline-block;
  flex-shrink: 0;
}
.province-pill span {
  font-size: .8rem;
  color: var(--color-text-muted);
  display: block;
  line-height: 1.4;
}
.area-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-dark);
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.area-address .icon {
  width: 1.2em;
  height: 1.2em;
  fill: var(--color-red);
  flex-shrink: 0;
}
.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.area-map { display: flex; flex-direction: column; background: var(--color-off); }
.map-frame { position: relative; }
.map-image { display: block; line-height: 0; }
.map-image img { width: 100%; height: auto; display: block; }
.map-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 7px; font-size: .62rem; line-height: 1.4; color: #555; background: rgba(255,255,255,.78); border-top-left-radius: 4px; }
.map-credit a { color: inherit; text-decoration: none; }
.map-credit a:hover { text-decoration: underline; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; }

/* Contact */
.contact { padding: var(--section-y) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-red);
}
.contact-list a { font-weight: 600; color: var(--color-dark); }
.contact-list a:hover { color: var(--color-red); }
.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.contact-whatsapp svg { width: 18px; height: 18px; color: #25d366; flex-shrink: 0; }
.contact-whatsapp:hover { color: #1da851; }
.contact-whatsapp:hover svg { color: #1da851; }

.contact-form {
  background: var(--color-off);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .88rem; font-weight: 600; color: var(--color-dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7em .9em;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(217,56,43,.15);
}
.contact-form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--color-text-muted); min-height: 1.2em; margin: 0; }
.form-note.success { color: #1F8A4C; font-weight: 600; }
.form-note.error { color: var(--color-red); font-weight: 600; }
/* Honeypot anti-spam: invisibile e irraggiungibile per le persone, ma i bot
   che compilano tutti i campi automaticamente ci cascano. Non display:none,
   che alcuni bot rilevano ed evitano. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-privacy-note { font-size: .82rem; color: var(--color-text-muted); margin: 0; }
.form-privacy-note a { color: var(--color-red); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy-note a:hover { color: var(--color-red-dark); }

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  font-size: .95rem;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-active .nav-dropdown-toggle {
  color: var(--color-dark);
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #fff;
  transition: width .2s ease;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown.is-active .nav-dropdown-toggle::after {
  width: 100%;
}
.dropdown-chevron {
  transition: transform .25s ease;
}
.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.is-active .dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 340px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(18, 22, 28, 0.12), 0 2px 8px rgba(18, 22, 28, 0.04);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .18s ease, transform .15s ease;
}
.dropdown-item:hover {
  background: #F8FAFC;
  transform: translateX(2px);
}
.dropdown-item:not(.btn)::after {
  display: none !important;
}
.dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229, 46, 53, 0.08);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-item-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dropdown-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dropdown-item-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color .15s ease;
}
.dropdown-item:hover .dropdown-item-title {
  color: var(--color-red);
}
.dropdown-item-desc {
  font-size: .74rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 0;
}
.dropdown-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.dropdown-all-link:hover {
  background: #F1F5F9;
  color: var(--color-red);
}

/* Service Card Links on Homepage */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-red);
  text-decoration: none;
  margin-top: 14px;
  transition: gap .2s ease;
}
.service-link:hover {
  gap: 10px;
}
.service-card-anchor {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Dedicated Service Pages Styles */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  padding: 10px 0;
  margin: -10px 0;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumb a:hover {
  color: var(--color-red);
}
.breadcrumb-sep {
  color: #CBD5E1;
}
.breadcrumb-current {
  color: var(--color-dark);
  font-weight: 600;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  color: var(--color-text-muted);
}
.contact-details strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-red);
}
.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-dark);
}
.contact-details a:hover { color: var(--color-red); }

/* Legal pages (Privacy, Cookie Policy...) */
.legal-page { padding: 56px 0 96px; }
.legal-container { max-width: 760px; }
.legal-container h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 8px; }
.legal-updated { color: var(--color-text-muted); font-size: .88rem; margin-bottom: 32px; }
.legal-container h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 10px; }
.legal-container p { margin-bottom: 14px; }
.legal-container ul { margin: 0 0 14px; padding-left: 22px; color: var(--color-text-muted); }
.legal-container li { margin-bottom: 6px; }
.legal-container a { color: var(--color-red); text-decoration: underline; text-underline-offset: 2px; }
.legal-container a:hover { color: var(--color-red-dark); }

.service-page-hero {
  padding: clamp(32px, 6vw, 48px) 0 clamp(40px, 5vw, 60px);
  background: linear-gradient(180deg, var(--color-off) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}
.service-page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.service-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background: #1e242b;
}
.service-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-hero-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(18, 22, 28, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

.service-section {
  padding: clamp(56px, 6vw, 64px) 0;
}
.service-section.alt-bg {
  background: var(--color-off);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.pillar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(229, 46, 53, 0.08);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; fill: currentColor; }
.pillar-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.3;
}
.pillar-card h3.nowrap-title,
.nowrap-title {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .nowrap-title {
    font-size: clamp(0.85rem, 4.2vw, 1.02rem);
  }
}
.pillar-card p { font-size: .92rem; color: var(--color-text); margin: 0; line-height: 1.55; }
.pillar-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: .88rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.workflow-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 12px;
}
.workflow-step h4 { font-size: 1rem; color: var(--color-dark); margin: 0 0 8px; }
.workflow-step p { font-size: .86rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

.spec-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.spec-badge-item {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spec-badge-item svg {
  color: var(--color-red);
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item h4 {
  font-size: .98rem;
  color: var(--color-dark);
  margin: 0 0 10px;
}
.faq-item p {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.related-service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.related-service-card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-service-card strong {
  font-size: .94rem;
  color: var(--color-dark);
}
.related-service-card span {
  font-size: .82rem;
  color: var(--color-red);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #B7BCC2;
  padding: 56px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo {
  height: 40px;
  width: auto;
}
.footer-tagline { color: #9CA1A7; margin: 0; line-height: 1.6; max-width: 30ch; }
.footer-col h3 {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 18px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a { color: #9CA1A7; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9CA1A7;
  line-height: 1.5;
}
.footer-contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-list a { color: #9CA1A7; text-decoration: none; }
.footer-contact-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: .82rem;
  color: #838890;
}
.footer-bottom a { color: #838890; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { color: #fff; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-brand { grid-column: span 1; align-items: flex-start; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--color-red-dark); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .area-inner, .contact-inner { grid-template-columns: 1fr; }
  .province-cards { grid-template-columns: repeat(3, 1fr); }
  
  .service-page-hero-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .related-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    /* Con "Servizi" aperto il pannello può essere alto: scorre al suo interno. */
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .primary-nav.open { display: flex; }
  /* Il pannello mobile resta su sfondo bianco: ripristina i colori scuri */
  .primary-nav a:not(.btn) { padding: 10px 0; width: 100%; color: var(--color-dark); }
  .primary-nav a:not(.btn)::after { background: var(--color-red); }
  .nav-dropdown-toggle { color: var(--color-dark); }
  .nav-dropdown-toggle:hover,
  .nav-dropdown.is-active .nav-dropdown-toggle { color: var(--color-red); }
  .nav-cta {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    background: var(--color-red);
    color: #fff;
  }
  .nav-cta:hover { background: var(--color-red-dark); color: #fff; }

  /* Dropdown on Mobile */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 1rem;
  }
  .nav-dropdown-toggle::after {
    display: none;
  }
  /* Su mobile la freccina era troppo piccola per capire che la riga si
     espande: la mettiamo dentro un cerchio colorato, ben visibile, che
     ruota quando il sottomenu è aperto. */
  .dropdown-chevron {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(217, 56, 43, 0.1);
    color: var(--color-red);
    flex-shrink: 0;
  }
  .nav-dropdown.is-active .dropdown-chevron {
    background: var(--color-red);
    color: #fff;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid var(--color-red);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
  }
  .nav-dropdown.is-active .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
  .province-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-badges { flex-direction: column; gap: 8px; }

  .workflow-grid { grid-template-columns: 1fr; }
  .spec-badges-list { flex-direction: column; align-items: stretch; }
  .faq-grid { grid-template-columns: 1fr; }
  .related-services-grid { grid-template-columns: 1fr; }
}

/* Striscia marchi (pagina videocitofonia) */
.brand-strip { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--color-border); }
.brand-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brand-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 140px; padding: 14px 24px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-off); }
.brand-item strong { font-family: 'Poppins', sans-serif; font-size: 1.15rem; color: var(--color-dark); letter-spacing: .02em; }
.brand-item span { margin-top: 2px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-red); }

/* Due numeri affiancati in un'unica capsula */
.phone-pair {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 24px; min-height: 52px;
  border: 2px solid var(--color-border); border-radius: 999px;
  background: transparent; font-family: var(--font-heading); font-weight: 600; color: var(--color-dark);
}
.phone-pair .icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.phone-pair a { color: inherit; text-decoration: none; white-space: nowrap; }
.phone-pair a:hover { color: var(--color-red); }
.phone-pair-sep { width: 2px; height: 28px; margin: 0 10px; border-radius: 2px; background: #D3CBC4; flex-shrink: 0; }
@media (max-width: 520px) { .phone-pair { width: 100%; justify-content: center; padding: 0 14px; gap: 8px; font-size: .95rem; } .phone-pair-sep { margin: 0 6px; } }

/* Conferma d'invio del modulo contatti */
.contact-form.is-sent > *:not(.form-success) { display: none; }
.contact-form:not(.is-sent) > .form-success { display: none; }
.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 28px 12px; outline: none;
  animation: fsRise .5s ease both;
}
.form-success h3 { margin: 6px 0 0; font-size: 1.6rem; color: var(--color-dark); }
.form-success p { margin: 0; max-width: 340px; color: var(--color-text-muted); font-size: 1.02rem; }
.form-success .btn { margin-top: 14px; }
.form-success-icon { width: 84px; height: 84px; }
.form-success-icon svg { width: 100%; height: 100%; display: block; }
.fs-circle { fill: #E8F6EE; stroke: #1F8A4C; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fsDraw .6s ease forwards; }
.fs-check { fill: none; stroke: #1F8A4C; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: fsDraw .4s ease .5s forwards; }
@keyframes fsDraw { to { stroke-dashoffset: 0; } }
@keyframes fsRise { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .form-success, .fs-circle, .fs-check { animation: none; stroke-dashoffset: 0; }
}

/* Su telefono i campi devono avere almeno 16px: sotto questa soglia Safari
   su iPhone ingrandisce la pagina quando tocchi il campo e poi "balla". */
@media (max-width: 900px) {
  .form-row input, .form-row textarea, .form-row select { font-size: 16px; }
}

/* Zona di tocco più comoda per email e telefoni nella barra in alto (senza cambiare il layout). */
@media (max-width: 720px) {
  .topbar a { position: relative; }
  .topbar a::before { content: ''; position: absolute; inset: -9px -5px; }
}
