:root {
  --primary: #039397;
  --primary-dark: #026d6a;
  --primary-light: #d9f5f4;

  --secondary: #026d6a; /* cosÃ¬ resti sulla stessa famiglia di verde */
  --dark: #1f2933;
  --muted: #6b7280;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
}

/* RESET */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;

  /* SFONDO IMMAGINE */
  background-image: url("../img/sfondo-sito.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* velatura chiara sopra lo sfondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  z-index: -1;
}

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

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

button {
  font-family: inherit;
}

/* LAYOUT DI BASE */

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* HEADER / NAV */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 1rem 0; /* Aumenta l’altezza della barra */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.nav-logo img {
  height: 86px;
}

.nav-logo span {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* BOTTONI */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(3, 147, 151, 0.45);
}

.btn-outline {
  color: var(--primary);
  border-color: rgba(3, 147, 151, 0.6);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* NAV MOBILE */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--dark);
}

/* HERO */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-title {
  font-size: clamp(2.4rem, 3.2vw + 1rem, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem 0;
  line-height: 1.05;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
}

/* HERO CARD */

.hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: #e0f7f6;
  color: var(--primary-dark);
}

.hero-metric {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-metric strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

/* MINI CARD */

.hero-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-card {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
}

.mini-card-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* SEZIONI GENERALI */

section {
  padding: 2.5rem 0;
}

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

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* GRIGLIE CARD / FEATURE */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.card-text {
  font-size: 0.94rem;
  color: var(--dark);
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* SPLIT GRID */

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.split-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.split-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
}

.split-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
}

.split-text {
  font-size: 0.94rem;
  color: var(--dark);
}

.split-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.split-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.2rem;
}

.split-list li::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

/* FEATURE GRID */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 22px;
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-text {
  font-size: 0.9rem;
}

/* CTA BOX */

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-radius: 24px;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cta-box,
.cta-box p,
.cta-box h3,
.cta-box small,
.cta-box li,
.cta-box strong,
.cta-box span {
  color: #ffffff !important;
}

.cta-box small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
}

.cta-box h3 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
}

.cta-box .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.1);
}

.cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* SUPPORT LIST */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.support-box {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.2rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.support-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 0.3rem;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 22px;
  padding: 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.about-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
}

.about-text {
  font-size: 0.95rem;
  color: var(--dark);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.about-item {
  background: var(--primary-light);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--primary-dark);
}

/* FOOTER */

footer {
  padding: 2.6rem 0 2rem;
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.footer-logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.footer-list li {
  margin-bottom: 0.3rem;
}

.footer-list a {
  color: inherit;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* TIPOLOGRAFIA PREMIUM & TITOLI PIÃ™ EVIDENTI */

h1,
h2,
h3,
.section-title,
.about-tagline,
.card-title,
.split-title,
.feature-title,
.cta-box h3 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

/* HERO PIÃ™ IMPORTANTE (override base) */

.hero-title {
  font-size: clamp(2.5rem, 3.3vw + 1rem, 3.2rem);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.02rem;
}

/* HERO STILE "WIRELESS" */

.hero-wireless {
  padding: 2.6rem 0 1.4rem;
}

/* Titolo + testo HERO ALLINEATO A SINISTRA */

.hero-heading {
  max-width: 780px;
  margin: 0 auto 1.8rem auto;
  text-align: left;
}

.hero-heading .hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-heading .hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 2.7rem);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.hero-heading .hero-title span {
  color: var(--primary);
}

.hero-heading .hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.1rem;
  margin-left: 0;
  margin-right: 0;
}

.hero-heading .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.9rem;
  justify-content: flex-start;
}

.hero-heading .hero-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
}

/* SEZIONE HERO "IN EVIDENZA" (CARD CENTRATA) */

.hero-evidenza {
  padding: 0 0 2.5rem;
}

.hero-card-home {
  max-width: 900px;
  margin: 1.8rem auto 0 auto;
  background: var(--primary-light); /* sfondo non bianco */
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* Allineo interno card "In evidenza" */

.hero-card-home .hero-card-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-card-home .hero-metric {
  text-align: center;
  margin-top: 0.5rem;
}

/* Mini-card dentro l'hero allineate al centro */

.hero-card-home .hero-grid-mini {
  margin-top: 0.8rem;
}

.hero-card-home .mini-card {
  text-align: center;
}

/* GRIGLIA EVIDENZE (se la userai in futuro) */

.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.hero-highlight {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.hero-highlight-icon img {
  width: 22px;
  height: 22px;
}

.hero-highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.hero-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-highlight ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.2rem;
}

.hero-highlight ul li::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

/* HEADER DELLE CARD CON ICONA + TITOLO (ICONA SOPRA TESTO) */

.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon img {
  width: 22px;
  height: 22px;
}

.card-header-text {
  display: block;
}

/* HOVER PREMIUM SU CARD E BOX */

.card,
.split-card,
.support-box,
.hero-card,
.about {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.split-card:hover,
.support-box:hover,
.hero-card:hover,
.about:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
}

/* RESPONSIVE BASE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.6fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  }

  .about {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 780px) {
  .nav {
    padding: 0.6rem 0;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  header.nav-open .nav-menu,
  header.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: 2;
  }

  .hero-grid-mini {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-logo img {
    height: 65px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-card {
    padding: 1rem 0.9rem;
  }

  .card,
  .split-card,
  .support-box,
  .about {
    padding: 1rem 0.9rem;
  }
}

/* Foto nelle card (cards-grid) */
.card-img {
  margin: -1.1rem -1.1rem 0.9rem -1.1rem; /* stessa padding della .card ma al contrario */
  border-radius: 22px 22px 0 0;           /* angoli arrotondati come la card */
  overflow: hidden;
  display: block;                         /* toglie il margin di default del figure */
}

.card-img img {
  width: 100%;
  height: 170px;        /* regola l'altezza come preferisci */
  object-fit: cover;    /* ritaglia la foto in modo pulito */
  display: block;
}

/* HERO-CARD: immagine uniforme (stessa altezza delle altre pagine) */
.hero-card img {
  height: 260px;      /* altezza armonizzata */
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Bottone Assistenza Remota (verde) */
.btn-assistenza {

    background-color: var(--primary-light);
    border-color: rgba(3, 147, 151, 0.6);
    color: #4a3f25 !important;
    font-weight: 600;
}

.btn-assistenza:hover {
    background-color: var(--primary-light);
    border-color: rgba(3, 147, 151, 0.6);
    box-shadow: 0 14px 40px rgba(3, 147, 151, 0.45);
}

