/* =========================================================
   INGROSSO AGENDE — Catalogo B2B
   Front-end rifatto da zero: design semplice, poco testo,
   catalogo in evidenza subito sotto l'intro.

   Palette (3 colori, blu più acceso):
   - #FBFEF9  Bianco/off-white  -> sfondo dominante
   - #191923  Scuro             -> header, footer, hero, testi forti
   - #0090E0 / #12B4FF Blu vivo -> accento (CTA, logo animato, badge)

   Font: Inter
   ========================================================= */

:root {
  --bg: #FBFEF9;
  --white: #FFFFFF;
  --dark: #191923;
  --dark-soft: #2A2A38;
  --blue: #0090E0;
  --blue-bright: #12C2FF;
  --blue-dark: #0A6DA8;
  --blue-soft: #E1F3FC;
  --text-dark: #191923;
  --text-muted: #63636F;
  --border-color: #E4E4E9;
  --error: #C0392B;
  --success: #1E7A4A;
  --overlay: rgba(25, 25, 35, 0.6);
  --radius: 10px;
  --shadow: 0 2px 14px rgba(25, 25, 35, 0.06);
  --shadow-hover: 0 10px 28px rgba(25, 25, 35, 0.1);
  --transition: 0.2s ease;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Barra scorrevole (sostituisce la vecchia trust strip) ----------
   Il markup ripete 5 volte lo stesso set di 4 voci: l'animazione trasla di
   1/5 (-20%) della larghezza totale, cioè esattamente un set. Con 5 copie
   invece di 2 la barra resta sempre piena (nessuno spazio vuoto a destra)
   anche su monitor molto larghi, perché c'è sempre contenuto di riserva
   pronto a entrare in vista prima che il loop si ripeta. */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20%); }
}

.scroll-strip {
  position: relative;
  background: linear-gradient(115deg, var(--dark) 0%, var(--blue-dark) 32%, var(--blue) 68%, var(--blue-bright) 100%);
  color: var(--white);
  overflow: hidden;
  height: 56px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.scroll-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.5;
  pointer-events: none;
}

.scroll-strip-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  will-change: transform;
  padding-left: 1.25rem;
}

.strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

.strip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.05rem 0;
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  display: flex;
  line-height: 0;
}

.logo-text span {
  color: var(--blue);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--blue-soft), #EAF7FF);
  color: var(--blue-dark);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 144, 224, 0.16);
}

.header-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding: 3.5rem 0;
  isolation: isolate;
}

/* Bagliore blu diffuso dietro il testo: mantiene profondità senza illustrazione centrale */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 65% at 15% 20%, rgba(18, 194, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(0, 144, 224, 0.18), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  max-width: 520px;
}

.hero-sub {
  color: #C7C7D1;
  max-width: 440px;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  margin-bottom: 1.75rem;
}

.hero-micro {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #9A9AA6;
}

/* Social proof */
.social-proof {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.proof-item {
  text-align: left;
}

.proof-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.proof-item span {
  font-size: 0.74rem;
  color: #9A9AA6;
}

.proof-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Quadrante "perché scegliere noi" (dentro la hero) ---------- */
.hero-why {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.4rem;
}

.hero-why-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E4E4EA;
  line-height: 1.3;
}

.hero-why-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0.4rem;
  border-radius: 9px;
  background: rgba(18, 194, 255, 0.14);
  color: var(--blue-bright);
}

/* ---------- Galleria agende a scorrimento (colonna destra dell'hero) ---------- */
@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.hero-gallery {
  position: relative;
  display: flex;
  gap: 1rem;
  height: 440px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.gallery-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}

.gallery-col-up {
  animation: scroll-up 32s linear infinite;
}

.gallery-col-down {
  animation: scroll-down 32s linear infinite;
}

.agenda-card {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.agenda-card svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Catalogo ---------- */
.catalog {
  flex: 1;
  padding: 2.75rem 0 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Griglia prodotti */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.grid-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 0;
  color: var(--text-muted);
}

.grid-message-error {
  color: var(--error);
}

/* ---------- Layout catalogo + filtri ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.catalog-filters {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.filters-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.filter-group {
  margin-bottom: 1.1rem;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.filter-group input[type="search"],
.filter-group select {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-group input[type="search"]:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 144, 224, 0.16);
}

.filter-reset-btn {
  width: 100%;
}

.filter-count {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.catalog-main {
  min-width: 0;
}

/* ---------- Card prodotto ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--blue);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--blue-bright);
}

.product-card:hover .image-overlay {
  opacity: 1;
}

.product-image {
  aspect-ratio: 5 / 4;
  background: var(--blue-soft);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 35, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.image-overlay span {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.product-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.product-sku {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.product-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}

.card-micro {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: var(--white);
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 144, 224, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 144, 224, 0.34);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 144, 224, 0.28);
}

.btn-accent:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 1.7rem;
  font-size: 0.98rem;
  width: auto;
}

.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: var(--white);
  padding: 0.68rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 144, 224, 0.3);
}

.btn-catalog:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 144, 224, 0.38);
  text-decoration: none;
}

.btn-catalog svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Mid CTA (ora dentro il footer, sezione unica) ---------- */
.mid-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  border-radius: 22px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.mid-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 92% 15%, rgba(18, 194, 255, 0.28), transparent 60%);
}

.mid-cta-content {
  position: relative;
  z-index: 1;
}

.mid-cta-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 0.6rem;
}

.mid-cta-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.mid-cta-text {
  max-width: 420px;
  margin: 0 0 1.3rem;
  color: #C7C7D1;
  font-size: 0.96rem;
  line-height: 1.5;
}

.mid-cta-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.7rem;
}

.mid-cta-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #E4E4EA;
  font-weight: 500;
}

.mid-cta-points svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mid-cta-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mid-cta-visual svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ---------- Footer (CTA + link + vantaggi, sezione unica) ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}

.site-footer .mid-cta-card {
  margin-bottom: 2.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-col-brand {
  padding-right: 1rem;
}

.logo-footer {
  justify-content: flex-start;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.005em;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.87rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.footer-links-plain li {
  color: var(--text-muted);
  font-size: 0.87rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.15rem;
}

.footer-note {
  margin-top: 0.3rem;
  font-size: 0.74rem;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  z-index: 55;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.btn-sticky {
  width: 100%;
}

/* ---------- Modale ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(25, 25, 35, 0.2);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-header {
  margin-bottom: 1.3rem;
  padding-right: 1.5rem;
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.modal-product-name {
  font-size: 0.92rem;
  color: var(--blue);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ---------- Form ---------- */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.required {
  color: var(--error);
}

.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--text-dark);
}

.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 144, 224, 0.16);
}

.form-group input[type="email"].is-invalid,
.form-group input[type="tel"].is-invalid {
  border-color: var(--error);
}

.form-group input[type="email"].is-invalid:focus,
.form-group input[type="tel"].is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-error {
  display: block;
  font-size: 0.77rem;
  color: var(--error);
  margin-top: 0.3rem;
  min-height: 1.1em;
}

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
  font-size: 0.87rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-feedback {
  padding: 0.78rem 1rem;
  border-radius: 8px;
  font-size: 0.89rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.form-feedback.success {
  background: #E6F4EC;
  color: var(--success);
  border: 1px solid #B8E0C8;
}

.form-feedback.error {
  background: #FDECEA;
  color: var(--error);
  border: 1px solid #F5C6C2;
}

.form-actions {
  margin-top: 0.35rem;
}

.form-micro {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Pagina dettaglio prodotto ---------- */
body.detail-open {
  overflow: hidden;
}

.product-detail-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.detail-topbar-inner {
  display: flex;
  align-items: center;
}

.detail-container {
  padding: 2rem 1.25rem 3rem;
}

.detail-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 580px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  padding: 2.25rem;
  transition: filter 0.3s ease;
}

.detail-content.is-blurred {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

.detail-image-wrap {
  background: var(--blue-soft);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0.4rem 0 0.7rem;
  line-height: 1.25;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.detail-moq {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
}

.detail-section-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.detail-unlocked {
  margin-top: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
}

/* Selettore colore */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.2rem;
}

.color-swatch-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--border-color);
  transition: box-shadow var(--transition), transform var(--transition);
}

.color-swatch:hover .color-swatch-dot {
  transform: scale(1.08);
}

.color-swatch.is-selected .color-swatch-dot {
  box-shadow: 0 0 0 2.5px var(--blue);
}

.color-swatch-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.color-swatch.is-selected .color-swatch-label {
  color: var(--blue-dark);
}

/* Overlay "sblocca scheda" sopra il contenuto blurrato */
.detail-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.detail-gate[hidden] {
  display: none;
}

.detail-gate-box {
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(25, 25, 35, 0.22);
}

.detail-gate-box h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.detail-gate-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-badge {
    display: none;
  }

  .btn-catalog {
    padding: 0.6rem 1.05rem;
    font-size: 0.82rem;
  }

  .hero {
    padding: 2.1rem 0 1.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 1.55rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-gallery {
    display: none;
  }

  .social-proof {
    justify-content: center;
    gap: 1rem;
  }

  .proof-item {
    text-align: center;
  }

  .proof-divider {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .sticky-cta {
    display: block;
  }

  .site-footer {
    padding: 2.25rem 0 5rem;
  }

  .site-footer .mid-cta-card {
    margin-bottom: 2rem;
  }

  .mid-cta-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    text-align: center;
  }

  .mid-cta-text {
    margin-left: auto;
    margin-right: auto;
  }

  .mid-cta-points {
    align-items: center;
  }

  .mid-cta-visual {
    order: -1;
    max-width: 180px;
    margin: 0 auto 0.5rem;
  }

  .modal {
    padding: 1.5rem;
  }

  .hero-why {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-why-item {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col-brand {
    padding-right: 0;
  }

  .logo-footer {
    justify-content: center;
  }

  .footer-tagline {
    margin: 0 auto;
  }

  .footer-links {
    align-items: center;
  }

  .catalog-filters {
    position: static;
  }

  .detail-content {
    grid-template-columns: 1fr;
    padding: 1.4rem;
    gap: 1.4rem;
  }

  .detail-card {
    border-radius: 14px;
  }

  .detail-gate-box {
    padding: 1.4rem;
  }

  .color-swatches {
    gap: 0.7rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 961px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog-layout .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 780px) {
  .catalog-layout {
    grid-template-columns: 230px 1fr;
  }

  .catalog-filters {
    position: sticky;
    top: 1.5rem;
  }
}

/* Riduci motion se preferito dall'utente */
@media (prefers-reduced-motion: reduce) {
  .scroll-strip-track,
  .gallery-col-up,
  .gallery-col-down,
  .btn-spinner {
    animation: none !important;
  }
}
