/* ==========================================================
   1. VARIABILI & SETUP
   ========================================================== */
:root {
  --blue: #0034b1;
  --blue-dark: #001f66;
  --yellow: #d7d500;
  --yellow-light: #f2f06a;
  --neutral: #f5f7fb;
  --text-light: #ffffff;
  --text-muted: #d0d6f2;
  --text-dark: #07152e;
  --text-grey: #5b6685;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 16px 35px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s ease-in-out;
  --font-main: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%; /* Base height */
}

body {
  font-family: var(--font-main);
  background: var(--blue);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100dvh; /* Modern viewport height */
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* LAYOUT UTILS */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  font-size: 0.98rem;
}

/* Evidenziazioni & Helpers */
.k { color: var(--yellow); font-weight: 800; }
.hl { color: var(--yellow); font-weight: 800; }
.note { color: rgba(240,244,255,.85); font-weight: 600; }

/* ==========================================================
   2. UI ELEMENTS (Buttons, Inputs, Badges)
   ========================================================== */

/* BOTTONI */
.btn {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: var(--yellow-light);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

/* INPUTS & FORMS (Global Definition) */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #d3daf2;
  font-size: 16px; /* Evita zoom su iOS */
  font-family: var(--font-main);
  background: #fff;
  color: var(--text-dark);
  line-height: 1.2;
  outline: none;
  transition: .2s ease;
}

/* Altezza fissa per input singola riga */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  height: 44px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(215, 213, 0, 0.22);
  transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
  color: #9aa3c2;
}

/* Select Custom Arrow */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #001f66 50%),
    linear-gradient(135deg, #001f66 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select::-ms-expand { display: none; }

/* Labels & Groups */
.field-group {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}
.field.required label::after { content: " *"; color: var(--yellow); font-weight: 700; }


/* ==========================================================
   3. HEADER / NAVBAR
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(0, 31, 102, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.site-header .nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-block: 10px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(215,213,0,0.45);
}

.nav-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* Links Desktop */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition-fast);
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--yellow); }

.nav-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-cta .btn { white-space: nowrap; }

/* Toggle Mobile */
.nav-toggle {
  display: none;
  border: 1px solid rgba(215,213,0,0.45);
  background: rgba(0,0,0,0.18);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  position: relative;
}

/* ==========================================================
   4. HERO SECTION
   ========================================================== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 90px;
  padding-bottom: 70px;
  background:
    linear-gradient(120deg, rgba(0, 31, 102, 0.96), rgba(0, 52, 177, 0.85)),
    url("banner.png") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw + 1.2rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow-light);
  margin-bottom: 18px;
}

.hero-text p {
  max-width: 540px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 106, 0.6);
  background: rgba(0, 52, 177, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge span { font-size: 0.85rem; }

.hero-visual {
  justify-self: flex-end;
  max-width: 360px;
  background: linear-gradient(140deg, #0034b1, #001f66);
  border-radius: 40px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(215, 213, 0, 0.45);
}

.hero-visual img {
  border-radius: 30px;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* ==========================================================
   5. SECTIONS GENERAL STYLES
   ========================================================== */
.section-light { background: var(--neutral); color: var(--text-dark); }
.section-dark { background: var(--blue-dark); color: var(--text-light); }

.section-header { margin-bottom: 40px; }
.section-header span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 600;
}
.section-header h2 { margin-top: 8px; font-size: 1.6rem; color: var(--text-light); }
.section-light .section-header h2 { color: var(--text-dark); }
.section-header p { max-width: 520px; margin-top: 6px; color: var(--text-muted); }
.section-light .section-header p { color: var(--text-grey); }

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}
.about-text p + p { margin-top: 12px; }

.about-highlight {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.82rem;
}

.about-highlight > div {
  border-radius: 16px;
  padding: 14px 14px;
  line-height: 1.4;
  border: 1px solid rgba(215, 213, 0, 0.35);
  background: linear-gradient(145deg, #001f66, #0034b1);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.about-highlight strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 2px;
}
.about-highlight > div:nth-child(2) { background: linear-gradient(145deg, #002a8a, #0046d5); }

.about-visual {
  background: linear-gradient(135deg, #0034b1, #001f66);
  border-radius: 30px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-visual::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 213, 0, 0.8), transparent 60%);
  opacity: 0.75;
}
.about-visual-inner { position: relative; z-index: 1; }
.about-visual h3 { font-size: 1.05rem; margin-bottom: 6px; }
.about-visual p { font-size: 0.86rem; color: var(--text-muted); }

/* PRODUCTS SECTION */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--yellow);
}
.product-card h3 { font-size: 0.98rem; margin-bottom: 8px; color: var(--text-dark); }
.product-card p { font-size: 0.85rem; color: var(--text-grey); }

/* WHY US SECTION */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-item {
  background: rgba(0, 52, 177, 0.9);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(215, 213, 0, 0.45);
  box-shadow: var(--shadow-card);
}
.why-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.why-item p { font-size: 0.86rem; color: var(--text-muted); }

.kpi {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(215,213,0,.45);
  background: rgba(215,213,0,.10);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* WORKSHOPS SECTION */
.workshops-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}
.workshops-card {
  background: linear-gradient(145deg, #001f66, #0034b1);
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(215, 213, 0, 0.45);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  color: #ffffff;
  width: 100%;
}
.workshops-card strong {
  display: block; font-size: 0.95rem; font-weight: 700; color: var(--yellow); margin-bottom: 8px;
}
.workshops-card ul { margin-top: 10px; padding-left: 18px; }
.workshops-card li { margin-bottom: 6px; line-height: 1.4; color: #f0f4ff; }

/* HOURS & LOCATION */
.hours-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.5fr);
  gap: 26px;
}
.hours-card, .map-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
  color: var(--text-dark);
  font-size: 0.9rem;
}
.hours-table {
  margin-top: 10px; width: 100%; border-collapse: collapse; font-size: 0.86rem;
}
.hours-table tr + tr td { border-top: 1px solid #e0e4f1; }
.hours-table td { padding: 6px 0; }
.hours-table td:first-child { font-weight: 600; }
.badge-saturday {
  display: inline-block; margin-top: 10px; padding: 6px 10px;
  border-radius: 999px; background: var(--yellow); color: var(--blue-dark);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
}
.map-card p { margin-bottom: 10px; color: var(--text-grey); }
.map-placeholder {
  margin-top: 8px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e0e6ff, #f9fafc);
  border: 1px dashed #b4bee4;
  padding: 14px; font-size: 0.82rem; color: var(--text-grey);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2.2fr);
  gap: 26px;
  align-items: flex-start;
}
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-card);
  color: var(--text-dark);
}
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { margin-bottom: 12px; font-size: 0.85rem; color: var(--text-grey); }
.contact-form { display: grid; gap: 10px; margin-top: 8px; }

.contact-info { font-size: 0.9rem; color: var(--text-muted); }
.contact-info p + p { margin-top: 6px; }
.contact-info strong { color: var(--yellow-light); }


/* ==========================================================
   6. AREA CLIENTI / FORM & PAGES
   ========================================================== */
.area-page { padding: 64px 0; }

.area-wrap {
  background: var(--neutral);
  color: var(--text-dark);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(7,21,46,0.06);
  padding: 26px;
}

.area-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: var(--yellow); margin-bottom: 6px;
}
.area-title {
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dark); font-size: 1.6rem; margin-bottom: 6px;
}
.area-subtitle { color: var(--text-grey); font-size: .95rem; margin-bottom: 20px; }

.area-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 22px; align-items: start;
}
.area-col { display: flex; flex-direction: column; gap: 16px; }

/* Card area clienti */
.area-card {
  background: #fff; color: var(--text-dark); border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  border: 1px solid #e6e9f6; border-top: 3px solid var(--yellow);
}

.area-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #eef1fb;
}
.area-card__title {
  margin: 0; font-size: 0.95rem; font-weight: 800;
  letter-spacing: .10em; text-transform: uppercase; color: var(--text-dark);
}
.area-card__tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-grey);
}

.area-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.row.grid-4 {
  display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 12px;
}
.area-field--full { grid-column: 1 / -1; }

.area-gdpr { font-size: .92rem; line-height: 1.55; color: var(--text-grey); }
.area-gdpr strong { color: var(--text-dark); }
.area-gdpr a { color: var(--blue); font-weight: 700; }
.area-gdpr .gdpr-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 10px; color: var(--text-dark);
}
/* Checkbox custom */
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--yellow); border-radius: 4px; }

.area-actions { display: flex; flex-direction: column; gap: 12px; }
.area-actions .btn { width: 100%; justify-content: center; }

/* Messaggi di feedback */
.area-msg {
  border-radius: 14px; padding: 10px 12px; font-size: .92rem;
  margin-bottom: 14px; border: 1px solid rgba(7,21,46,0.08);
}
.area-msg--success { background: #d4edda; color: #155724; }
.area-msg--warning { background: #fff3cd; color: #856404; }
.area-msg--error { background: #f8d7da; color: #721c24; }

/* Page Hero (Internal Pages) */
.page-hero { padding: 110px; }
.breadcrumbs { font-size: .85rem; opacity: .9; margin-bottom: 14px; }
.breadcrumbs a { color: rgba(242,240,106,.95); }
.breadcrumbs a:hover { text-decoration: underline; }


/* ==========================================================
   7. POLICY & LEGAL PAGES (Theme Override)
   ========================================================== */
body.policy-page {
  background: var(--neutral) !important;
  color: var(--text-dark) !important;
}

.policy-page .legal-hero {
  padding: 44px 0 18px;
  background: linear-gradient(120deg, rgba(0,31,102,.96), rgba(0,52,177,.86));
  color: #fff;
}
.legal-hero h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
  line-height: 1.15; margin-top: 10px; color: #fff;
}

.legal-wrap { padding: 34px 0 70px; background: var(--neutral); }

.legal-card {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border: 1px solid #d3daf2 !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: 18px;
  padding: 18px 18px 20px;
}
.legal-card + .legal-card { margin-top: 14px; }

.legal-card h2 {
  font-size: 1.05rem; margin-bottom: 10px; text-transform: uppercase;
  letter-spacing: .06em; color: #001f66;
}
.legal-card p, .legal-card li { color: #3b4766 !important; font-size: .95rem; line-height: 1.7; }
.legal-card ul { padding-left: 18px; margin-top: 8px; }

.legal-meta { margin-top: 10px; font-size: .86rem; color: rgba(240,244,255,.85); }
.chip {
  display: inline-block; padding: 6px 10px;
  border-radius: 999px; border: 1px solid rgba(215,213,0,.55);
  background: rgba(215,213,0,.12); color: #fff;
  font-weight: 700; letter-spacing: .04em; font-size: .82rem;
}


/* ==========================================================
   8. APP SHELL (Backoffice / Logged In)
   ========================================================== */
.app-shell {
  width: min(1220px, 100%);
  max-width: 100%;
  border-radius: clamp(16px, 2.4vw, 28px);
  margin: clamp(10px, 2.2vw, 24px) auto;
}

.app-header {
  flex-wrap: wrap; row-gap: 10px;
  padding: clamp(12px, 2vw, 18px) clamp(12px, 2.2vw, 22px);
}
.app-header-actions { margin-left: auto; width: auto; flex-wrap: wrap; justify-content: flex-end; }
.app-body { padding: clamp(12px, 2.2vw, 18px); overflow: auto; }

.app-title-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.app-title-row > div:last-child { margin-left: auto; max-width: 520px; width: 100%; }

.filters, .search-box, .export-actions { justify-content: flex-start; }

.table-wrapper { overflow-x: hidden; }
table { width: 100%; table-layout: fixed; }
th, td { overflow-wrap: anywhere; }

/* Colonne fisse per tabelle dati */
#clientiTable td:nth-child(1), #clientiTable th:nth-child(1),
#clientiTable td:nth-child(4), #clientiTable th:nth-child(4) {
  white-space: nowrap !important; overflow-wrap: normal !important;
}


/* ==========================================================
   9. FOOTER
   ========================================================== */
.site-footer {
  background: #000f34;
  padding: 26px 0;
  font-size: 0.8rem;
  color: #8f9ac4;
}

.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-weight: 500; }

.footer-social { display: flex; gap: 10px; }
.social-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 213, 0, 0.7);
  color: var(--yellow-light);
  font-size: 0.78rem;
}

/* ==========================================================
   10. EXTRAS (Whatsapp)
   ========================================================== */
.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999999 !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20b858; }
.whatsapp-float svg { width: 28px !important; height: 28px !important; fill: #ffffff; display: block; }


/* ==========================================================
   11. MEDIA QUERIES (Responsive Logic)
   ========================================================== */

/* Tablet & Mobile Landscape */
@media (max-width: 1100px) {
  .brand-name { max-width: 220px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 960px) {
  .hero-inner, .about-grid, .products-grid, .why-grid,
  .workshops-grid, .hours-location-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { padding-top: 90px; }
  .hero-visual { justify-self: stretch; max-width: none; }
  .about-highlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Area Clienti Mobile */
  .area-grid { grid-template-columns: 1fr; }
  .area-row, .row.grid-4 { grid-template-columns: 1fr; }
  .area-wrap { padding: 18px; }
  form { grid-template-columns: 1fr !important; }
  .app-title-row > div:last-child { max-width: 100%; }
}

/* Mobile Menu Logic */
@media (max-width: 860px) {
  .site-header .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }

  /* Dropdown Styles */
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(0, 31, 102, 0.98);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column; gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: all .25s ease;
  }
  .nav-links a {
    padding: 12px 20px; font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links a:first-child { border-top: none; }

  .nav-cta {
    position: absolute; left: 0; right: 0; top: auto;
    padding: 12px 20px;
    background: rgba(0, 31, 102, 0.98);
    display: flex; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all .25s ease;
  }

  /* Stato aperto */
  body.menu-open .nav-links,
  body.menu-open .nav-cta {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* Small Mobile */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .products-grid, .why-grid, .about-highlight { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .field-group { grid-template-columns: 1fr; }
  .btn, .btn-mini, .btn-table { padding: 10px 14px; }
  .app-header-logo { width: 46px; height: 46px; border-radius: 16px; }
}

@media (max-width: 420px) {
  .app-header-text h1 { font-size: 0.95rem; letter-spacing: 0.12em; }
  .app-header-badge { width: 100%; justify-content: center; }
}


/* ==========================================================
   12. EXTRA: PAGINA SERVIZI
   ========================================================== */
.logistics-bar {
  display: flex; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; margin-top: -40px; position: relative; z-index: 2;
}
.logistics-item {
  flex: 1; min-width: 250px;
  background: #ffffff; color: var(--text-dark);
  padding: 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--yellow);
}
.logistics-item strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: var(--blue-dark); }
.logistics-item p { font-size: 0.9rem; margin: 0; color: var(--text-grey); }

.service-highlight { position: relative; }
.service-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }

/* Badge Tempi */
.badge-time {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 10px; vertical-align: middle;
}
.badge-immediate { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-wait { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Box Nota Importante */
.note-box {
  background: #fff4f4 !important; border: 2px dashed #eebdbd !important;
}

/* patch mobile */
@media (max-width: 768px) {
  .page-hero {
    padding: 70px 0 50px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .page-hero p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .breadcrumbs {
    margin-bottom: 10px;
    font-size: 0.75rem;
    opacity: 0.8;
  }
}
@media (max-width: 768px) {
  .page-hero .badge {
    margin-top: 14px;
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}
/* FIX PAGE HERO MOBILE */
@media (max-width: 768px) {

  .page-hero {
    padding: 56px 0 42px; /* prima era troppo alto */
    min-height: auto;
  }

  .page-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .page-hero p {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .page-hero .badge {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

}




/* =========================
   CONTATTI: helper + reviews
   ========================= */
.contact-helper,
.reviews-box{
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border-left: 5px solid var(--yellow);
  box-shadow: var(--shadow-card);
}

.helper-head,
.reviews-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.helper-tag,
.reviews-tag{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(215, 213, 0, .18);
  color: var(--blue-dark);
  border: 1px solid rgba(215, 213, 0, .45);
  white-space: nowrap;
}

.helper-list{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap:8px;
  color: var(--text-grey);
  font-size: .92rem;
}

.helper-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height: 1.35;
}

.helper-list .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--yellow);
  flex: 0 0 auto;
}

.helper-cta{ margin-top: 12px; display:flex; flex-wrap:wrap; gap:10px; }
.helper-note{ margin: 10px 0 0; font-size: .85rem; color: var(--text-grey); opacity: .9; }

.reviews-text{ margin: 0 0 12px; color: var(--text-grey); font-size: .92rem; }
.reviews-actions{ display:flex; flex-wrap:wrap; gap:10px; }



/* =========================
   LOGIN / AUTH PAGES
   ========================= */
.auth-page{
  background:#001f66;
  color:#fff;
  margin:0;
  min-height:100vh;
}

.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.auth-card{
  width:min(420px, 92vw);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(215,213,0,.55);
  border-radius: 18px;
  padding: 22px;
}

.auth-title{
  margin:0 0 6px 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.auth-subtitle{
  margin:0 0 14px 0;
  opacity:.9;
  font-size: .95rem;
}

.auth-label{
  display:block;
  margin-top: 8px;
  font-weight: 600;
  font-size: .95rem;
}

.auth-input{
  width:100%;
  margin-top:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color:#fff;
  box-sizing:border-box;
}

.auth-input:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(215,213,0,.35);
  border-color: rgba(215,213,0,.65);
}

.auth-button{
  margin-top:12px;
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:0;
  background:#d7d500;
  color:#001f66;
  font-weight:800;
  cursor:pointer;
}

.auth-msg{
  margin-top: 12px;
  font-size:.95rem;
}

.auth-msg--info{ color:#f2f06a; }
.auth-msg--error{ color:#ffb3b3; }

.auth-links{
  margin-top: 14px;
  text-align:center;
}

.auth-link{
  color:#f2f06a;
  font-size: .9rem;
  text-decoration: none;
}

.auth-link:hover{
  text-decoration: underline;
}
