/* ═══════════════════════════════════════════════════
   CAST s.r.l. – Stylesheet principale
   ═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --brand:       #a41e34;
  --brand-dark:  #7e1527;
  --ink:         #22242a;
  --ink-soft:    #51545d;
  --bg:          #f7f4f1;
  --paper:       #ffffff;
  --paper-soft:  #f7f5f3;
  --line:        #e2d8d1;
  --shadow:      0 18px 40px rgba(59,36,32,0.08);
  --radius:      14px;
  --transition:  0.25s ease;
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header / Nav ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(164,30,52,0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { height: 52px; width: auto; object-fit: contain; }
.brand-fallback {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand);
}
.brand-fallback-c {
  background: var(--brand);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.brand-fallback-text { color: var(--ink); }
.brand-fallback-text span { color: var(--brand-dark); font-size: 0.85em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.91rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover { color: var(--brand); background: rgba(164,30,52,0.06); }
.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
}
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav open state */
.site-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: #fff;
  padding: 16px 24px 24px;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 199;
  gap: 4px;
}
.site-nav.open a {
  padding: 10px 14px;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.site-nav.open a:last-child { border-bottom: none; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-full { width: 100%; justify-content: center; }

/* ── Typography Helpers ────────────────────────────── */
.overline, .section-kicker, .ns-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); margin-bottom: 12px; }
h3 { font-size: 1.1rem; margin-bottom: 10px; }

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 24px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ── Section base ──────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-soft {
  background: var(--paper-soft);
}

/* ── Dotted divider ────────────────────────────────── */
.dotted-divider {
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
  margin: 16px 0;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(160deg, #ffffff 0%, #faf7f5 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .overline { font-size: 0.78rem; }
.hero-copy h1 { max-width: 16ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero right column – stack dei due card */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero aside card */
.hero-side.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

/* Hero Sicily card */
.hero-sicilia-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  cursor: default;
  line-height: 0; /* elimina spazio sotto l'immagine */
}
.hero-sicilia-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.hero-sicilia-card:hover .hero-sicilia-img { transform: scale(1.03); }
.hero-sicilia-overlay { display: none; }
.contact-card-grid { display: flex; flex-direction: column; gap: 0; }
.mini-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 6px;
}
.contact-card-grid h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 22ch;
  line-height: 1.3;
  margin-bottom: 0;
}
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-list p {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.87rem;
}
.contact-list p strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
}
.contact-list p a { color: var(--ink); transition: color var(--transition); }
.contact-list p a:hover { color: var(--brand); }

/* ── Chi siamo ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.about-copy p { color: var(--ink-soft); line-height: 1.75; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--brand);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(164,30,52,0.12);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--ink); font-size: 1rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; margin-top: 8px; }

/* ── Stats ─────────────────────────────────────────── */
.cast-stats {
  background: var(--ink);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

/* ── Servizi ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(164,30,52,0.12);
  border-color: var(--brand);
}
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card ul li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ── Marchi ────────────────────────────────────────── */
.partner-groups { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }

.partner-group h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-soft);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.brand-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.brand-logo-grid-2 { max-width: 480px; }

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 160px;
  max-width: 200px;
  height: 90px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: visible;
}
.brand-logo-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(164,30,52,0.14);
  transform: translateY(-3px);
}
.brand-logo-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  display: block;
}
.brand-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-logo-multiply {
  mix-blend-mode: multiply;
}


.brand-logo-text-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Notizie Carousel ──────────────────────────────── */
.news-scroll-section {
  padding: 72px 0 80px;
  background: #fff;
  border-top: 3px solid var(--brand);
}
.news-scroll-section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.ns-kicker {
  margin-bottom: 4px;
}

.ns-wrap {
  position: relative;
  margin-top: 28px;
}
.ns-fade-l, .ns-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}
.ns-fade-l { left: 0; background: linear-gradient(to right, #fff, transparent); }
.ns-fade-r { right: 0; background: linear-gradient(to left, #fff, transparent); }

.ns-track-outer { overflow: hidden; border-radius: 12px; }
.ns-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ns-track::-webkit-scrollbar { display: none; }
.ns-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.ns-card {
  flex: 0 0 260px;
  width: 260px;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  background: #fff;
}
.ns-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(164,30,52,0.15);
  border-color: var(--brand);
}

.ns-img-wrap { height: 138px; overflow: hidden; background: #f4f4f4; flex-shrink: 0; }
.ns-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ns-card:hover .ns-img { transform: scale(1.06); }

.ns-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.ns-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
}
.ns-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.ns-desc {
  font-size: 0.79rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: auto;
  padding-top: 4px;
}

.ns-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.ns-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ns-btn:hover { background: var(--brand); color: #fff; }

/* ── Gallery Cantiere ──────────────────────────────── */
#soluzioni-cantiere {
  padding: 64px 0 80px;
  background: var(--paper-soft);
  border-top: 3px solid #f0e8ea;
  border-bottom: 3px solid #f0e8ea;
}
#soluzioni-cantiere > .container {
  text-align: center;
  max-width: 1200px;
}
#soluzioni-cantiere h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.sc-lead {
  color: #666;
  font-size: 0.95rem;
  margin: 0 auto 36px;
  line-height: 1.7;
  max-width: 680px;
  display: block;
  text-align: center;
}

/* ── Google Photos Album Widget ────────────────────── */
.pa-gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 8px;
  padding: 0 20px;
  box-sizing: border-box;
}
.pa-gallery-container .pa-gallery-player-widget {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Track scorrevole gallery ──────────────────────── */
.gc-track-outer {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.gc-track {
  display: flex;
  gap: 16px;
  padding: 8px 60px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  min-height: 210px;
  align-items: center;
}
.gc-track::-webkit-scrollbar { display: none; }
.gc-track:active { cursor: grabbing; }

/* ── Singola foto ──────────────────────────────────── */
.gc-photo {
  flex: 0 0 260px;
  width: 260px;
  height: 195px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 14px rgba(0,0,0,0.13);
  cursor: pointer;
  background: #e8e0e3;
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.35s cubic-bezier(0.25,0.8,0.25,1);
}
.gc-photo:hover {
  transform: scale(1.09) translateY(-5px);
  box-shadow: 0 16px 40px rgba(164,30,52,0.25);
  z-index: 10;
}
.gc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.gc-photo:hover img { transform: scale(1.08); }
.gc-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(164,30,52,0);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.gc-photo:hover .gc-photo-overlay {
  opacity: 1;
  background: rgba(164,30,52,0.22);
}
/* Skeleton animation */
.gc-photo.skeleton { animation: gcSkel 1.2s ease-in-out infinite alternate; }
@keyframes gcSkel { from { background: #e8e0e3; } to { background: #d4c5c9; } }

/* ── Frecce nav gallery ─────────────────────────────── */
.gc-nav { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.gc-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gc-btn:hover { background: var(--brand); color: #fff; }

.gc-album-wrap { text-align: center; margin-top: 8px; }
.gc-album-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--brand);
  border-radius: 20px;
  padding: 6px 18px;
  transition: background 0.2s, color 0.2s;
}
.gc-album-link:hover { background: var(--brand); color: #fff; }

/* Lightbox */
.gc-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.gc-lb-img {
  max-width: 90vw; max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  display: block;
}
.gc-lb-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 12px;
}
.gc-lb-close, .gc-lb-prev, .gc-lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 2;
  padding: 10px 16px;
}
.gc-lb-close { top: 14px; right: 18px; font-size: 2.5rem; }
.gc-lb-prev { left: 0; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.2); border-radius: 0 4px 4px 0; }
.gc-lb-next { right: 0; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.2); border-radius: 4px 0 0 4px; }
.gc-lb-close:hover, .gc-lb-prev:hover, .gc-lb-next:hover { opacity: 1; }
.gc-lb-counter { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 10px; }

/* ── Contatti ──────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.2rem;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.contact-icon.wa-green { color: #25D366; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 2px;
}
.contact-value { font-size: 0.92rem; color: var(--ink); line-height: 1.55; }
.contact-link { color: var(--ink); transition: color var(--transition); font-weight: 600; }
.contact-link:hover { color: var(--brand); }
.contact-wa { color: #25D366; font-weight: 700; }
.contact-wa:hover { color: #1da851; }
.contact-map-wrap { margin-top: 8px; }

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--paper-soft);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(164,30,52,0.10);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row + .form-group { margin-bottom: 16px; }
.form-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* ── Brand Tooltip con anteprima sito ──────────────── */
#brand-tooltip {
  display: none;
  position: fixed;
  z-index: 999999;
  background: #ffffff;
  color: #111;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 400;
  border-radius: 14px;
  width: 260px;
  max-width: 88vw;
  white-space: normal;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(164,30,52,0.12);
  pointer-events: auto;
  border-top: 4px solid var(--brand);
  top: -9999px;
  left: -9999px;
  box-sizing: border-box;
  font-family: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#brand-tooltip.brand-tip-visible {
  opacity: 1;
  transform: translateY(0);
  cursor: pointer;
}

.brand-tip-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f0ece8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-tip-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-tip-url {
  display: block;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.02em;
}

/* anteprima sito rimossa – solo testo */

.brand-tip-desc {
  padding: 10px 14px 12px;
  font-size: 0.79rem;
  color: #444;
  line-height: 1.55;
  margin: 0;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-logo-fallback {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.footer-payoff {
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-contact-item a:hover { color: #fff; }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background var(--transition) !important;
}
.footer-wa:hover { background: #1da851 !important; }

.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links li a:hover { color: #fff; }

.footer-social-row { display: flex; flex-direction: column; gap: 8px; }
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), color var(--transition);
}
.footer-social-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ── Back to top ───────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 14px rgba(164,30,52,0.3);
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* ── Reveal animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-side-stack { display: none; }
  .hero { padding: 48px 0 56px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .contatti-grid { grid-template-columns: 1fr; gap: 32px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .gc-photo { flex: 0 0 200px; width: 200px; height: 150px; }
  .gc-track { padding: 8px 20px 14px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-value { font-size: 2rem; }
  .brand-logo-card { min-width: 130px; max-width: 160px; height: 75px; }
  .ns-card { flex: 0 0 220px; width: 220px; }
  .ns-img-wrap { height: 115px; }
}
