/* VerdeAzul — palette accessibile: verde-blu, blu profondo, arancio caldo */
:root {
  --color-bg: #f4f9f7;
  --color-surface: #ffffff;
  --color-ink: #14262a;
  --color-ink-muted: #3d5459;
  --color-blue: #1a5f7a;
  --color-blue-dark: #0f3d4f;
  --color-green: #2d8a6e;
  --color-green-soft: #c8eadf;
  --color-orange: #e07830;
  --color-orange-soft: #fde8d4;
  --color-accent: #f4b942;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(15, 61, 79, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--color-orange);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-blue-dark);
}

.ticker {
  background: linear-gradient(90deg, #c45a1a, var(--color-orange), #f4b942);
  color: #1a0f08;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ticker__viewport {
  overflow: hidden;
  max-width: 100%;
}

.ticker__rail {
  display: flex;
  width: max-content;
  animation: ticker-marquee 32s linear infinite;
}

.ticker__segment {
  flex-shrink: 0;
  padding: 0.45rem 2rem 0.45rem 0;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__rail {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ticker__segment[aria-hidden="true"] {
    display: none;
  }
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.topbar {
  background: linear-gradient(90deg, var(--color-blue-dark), var(--color-green));
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.topbar p {
  margin: 0;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-green-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
  text-decoration: none;
}

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

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-orange);
}

.header-actions {
  display: flex;
  gap: 0.25rem;
}

.icon-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--color-blue-dark);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--color-green-soft);
}

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

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-green-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
  }
}

.hero {
  padding: 2.5rem 1.25rem 3rem;
  background: linear-gradient(165deg, var(--color-green-soft) 0%, var(--color-bg) 45%, var(--color-orange-soft) 100%);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-blue-dark);
}

.lead {
  color: var(--color-ink-muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background: #c9651f;
  border-color: #c9651f;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-blue-dark);
  border-color: var(--color-blue);
}

.btn-ghost:hover {
  background: var(--color-surface);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  max-width: 340px;
  margin: 0;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
}

.strip {
  background: var(--color-blue);
  color: #fff;
  padding: 0.85rem 1.25rem;
}

.strip-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 2.75rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section--alt {
  background: var(--color-surface);
  max-width: none;
  padding-left: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--color-blue-dark);
}

.section-head p {
  margin: 0 0 1.5rem;
  color: var(--color-ink-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 95, 122, 0.12);
  box-shadow: 0 2px 12px rgba(15, 61, 79, 0.04);
  display: flex;
  flex-direction: column;
}

.product-card--clickable {
  cursor: pointer;
}

.product-card--clickable:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

.product-card__visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(160deg, var(--color-green-soft), #e8f4f8);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card__brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-green);
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-ink);
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin: 0;
  flex: 1;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.price {
  font-weight: 700;
  color: var(--color-blue-dark);
  font-size: 1.05rem;
}

.product-card .btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 8px;
  background: var(--color-green-soft);
  color: var(--color-blue-dark);
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
}

.product-card .btn-add:hover {
  background: var(--color-green);
  color: #fff;
}

.section--brands .brand-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section--brands .brand-chips li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-block {
  max-width: var(--max);
}

.cta-inner {
  background: linear-gradient(120deg, var(--color-blue-dark), var(--color-green));
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.cta-inner p {
  margin: 0;
  opacity: 0.95;
}

.cta-inner a {
  color: var(--color-accent);
  font-weight: 700;
}

.site-footer {
  background: var(--color-ink);
  color: #c5d4d8;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-links .footer-link-btn {
  color: #c5d4d8;
}

.small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter input {
  flex: 1;
  min-width: 160px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #3d5459;
  background: #1e3338;
  color: #fff;
  font-family: inherit;
}

.newsletter input::placeholder {
  color: #8aa0a6;
}

.copyright {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #2a4046;
  color: #8aa0a6;
  text-align: center;
}

.section--legal {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section--legal h2 {
  font-family: var(--font-display);
  color: var(--color-blue-dark);
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.section--legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-ink);
}

.legal-text {
  color: var(--color-ink-muted);
}

.legal-text ul {
  padding-left: 1.25rem;
}

.legal-text code {
  font-size: 0.9em;
  background: var(--color-green-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--color-blue-dark);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #c5d4d8;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}

.footer-link-btn:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(20, 38, 42, 0.92);
  color: #e8f2f0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cookie-banner__title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cookie-banner__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c5d4d8;
}

.cookie-banner__text a {
  color: var(--color-accent);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner .btn-primary {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.cookie-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body:has(#cookie-banner:not([hidden])) {
  padding-bottom: 10rem;
}

@media (min-width: 640px) {
  body:has(#cookie-banner:not([hidden])) {
    padding-bottom: 7rem;
  }
}

.section--callback {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.callback-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(26, 95, 122, 0.15);
  box-shadow: var(--shadow);
}

.section--callback h2 {
  font-family: var(--font-display);
  color: var(--color-blue-dark);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.callback-lead {
  margin: 0 0 1rem;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.callback-lead a {
  color: var(--color-blue);
  font-weight: 700;
}

.callback-product-hint {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: var(--color-orange-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-blue-dark);
}

.form-callback .form-row {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 95, 122, 0.25);
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-soft);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.callback-success {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-green-soft);
  color: var(--color-blue-dark);
  font-weight: 600;
  line-height: 1.45;
}

.callback-success:focus {
  outline: none;
}

.page-legal .legal-doc {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.legal-doc {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  font-weight: 600;
}

.legal-doc__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--color-blue-dark);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.legal-doc__meta {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.legal-doc__body h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--color-blue-dark);
}

.legal-doc__body h2:first-of-type {
  margin-top: 0;
}

.legal-doc__back {
  margin-top: 2.5rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--color-surface);
  border: 1px solid rgba(26, 95, 122, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(26, 95, 122, 0.1);
}

.legal-table thead th {
  background: var(--color-green-soft);
  color: var(--color-blue-dark);
  font-weight: 700;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem;
  }
}
