:root {
  --primary: #1a6bb5;
  --primary-dark: #1455a0;
  --accent: #f5c518;
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #1e8449;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body > footer:last-child {
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.45;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--primary);
}

.navbar-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.site-header__bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.brand__mark {
  width: 192px;
  height: 38px;
  display: block;
  background: left center / contain no-repeat url("../img/loghi/logo.svg");
  flex-shrink: 0;
}

.brand__mark i,
.brand__meta {
  display: none;
}

.brand__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}

.brand__tagline {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-light);
}

.brand__mark i {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(26, 107, 181, 0.06);
  border: 1px solid rgba(26, 107, 181, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.header-proof i {
  font-size: 13px;
}

.button {
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  border: none;
  min-height: 46px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.button--primary {
  background: var(--accent);
  color: var(--dark);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.button--secondary {
  background: var(--primary);
  color: #fff;
}

.button--secondary:hover {
  background: var(--primary-dark);
}

.button--outline,
.button--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.button--outline:hover,
.button--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 140;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.3);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.mobile-drawer__nav {
  display: grid;
  gap: 12px;
}

.mobile-drawer__nav a {
  font-size: 15px;
  color: var(--dark);
}

.btn {
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  border: none;
  min-height: 46px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-blue {
  background: var(--primary);
  color: #fff;
}

.btn-blue:hover {
  background: var(--primary-dark);
}

.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

.section.alt {
  background: var(--bg-alt);
}

.section-full {
  padding: 80px 40px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--dark);
}

.section .subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.hero-compact {
  padding: 72px 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-compact h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--dark);
}

.hero-compact p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 760px;
}

.stack-md {
  display: grid;
  gap: 24px;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 88px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  width: 100%;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--dark);
}

.hero p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-light);
}

.hero-proof-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tp-stars {
  color: #00b67a;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}

.tp-label {
  font-size: 13px;
  color: var(--text-light);
}

.tp-score {
  font-weight: 700;
  color: var(--dark);
}

.tp-brand {
  font-weight: 600;
  color: #00b67a;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  font-size: 12px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-light);
}

.hero-pill--accent {
  background: rgba(26, 107, 181, 0.07);
  border-color: rgba(26, 107, 181, 0.25);
  color: var(--primary);
  font-weight: 600;
}

.section-comparatore {
  background: linear-gradient(150deg, #0f1f3d 0%, #1a4a7a 60%, #1a6bb5 100%);
  padding: 0;
}

.section-comparatore .section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-comparatore .section-label {
  color: var(--accent);
}

.section-comparatore h2 {
  color: #fff;
}

.section-comparatore .subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.section-comparatore .comparatore-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.section-comparatore .comparatore-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.section-comparatore .comparatore-form {
  background: #fff;
  border: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.stats-bar {
  background: var(--dark);
  padding: 56px 40px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  width: 100%;
}

.stat-value {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.cta-final {
  background: var(--primary);
  padding: 96px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  pointer-events: none;
}

.cta-final > * {
  position: relative;
}

.cta-final h2 {
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-big {
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 18px;
}

footer {
  background: var(--dark);
  padding: 56px 40px 28px;
}

.site-footer {
  background: var(--dark);
  padding: 56px 40px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer .container {
  max-width: 1100px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-corrieri {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-corriere {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.carrier-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carrier-badge {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.55);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header__bar {
    padding: 12px 24px;
    gap: 18px;
  }

  .site-nav,
  .header-proof {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 20px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px 24px;
  }

  .section {
    padding: 56px 24px;
  }

  .stats-bar,
  .cta-final,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-footer,
  .site-footer__grid,
  .site-footer__copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .navbar {
    padding: 12px 24px;
  }

  .navbar-links {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .section h2 {
    font-size: 26px;
  }

  .btn,
  .cta-big {
    width: 100%;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .navbar-ctas {
    display: none;
  }

  .site-header__bar {
    padding: 14px 24px;
    gap: 16px;
  }

  .header-actions .button,
  .header-proof {
    display: none;
  }

  .brand__mark {
    width: 190px;
    height: 38px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-compact {
    padding: 48px 24px 24px;
  }

  .hero-compact h1 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .topbar {
    font-size: 12px;
  }

  .site-header__bar {
    padding: 12px 18px;
  }

  .brand__mark {
    width: 166px;
    height: 34px;
  }

  .hero {
    padding: 44px 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 18px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stats-bar,
  .cta-final,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
