:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c6370;
  --line: #e8eaed;
  --soft: #f5f6f8;
  --soft-2: #eef0f4;
  --accent: #1428a0;
  --radius-pill: 9999px;
  --container: 1180px;
  --header-h: 72px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font: "SamsungOne", Arial, Helvetica, sans-serif;
  --display: "SamsungSharpSans", "SamsungOne", Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--soft);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__lead {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}

.section__head {
  margin-bottom: 2.5rem;
}

.section__head--center {
  text-align: center;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--dark {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.btn--dark:hover {
  background: #222;
  border-color: #222;
}

.btn--light {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.btn--light:hover {
  background: var(--soft-2);
  border-color: var(--soft-2);
}

.btn--outline {
  border: 1px solid #111;
  background: transparent;
}

.btn--outline:hover {
  background: #111;
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__cre {
  height: 22px;
  width: auto;
}

.brand__samsung {
  height: 20px;
  width: auto;
}

.brand__divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

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

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #333;
  position: relative;
}

.nav__link:hover,
.nav__link.is-active {
  color: #000;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #000;
}

.nav__cta {
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #111;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Hero — allineato alla griglia .container come Samsung support */
.hero {
  position: relative;
  height: clamp(400px, 36vw, 540px);
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-color: #111;
  background-image: var(--hero-mb);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__slide {
    background-image: var(--hero-pc);
    background-position: center center;
  }

  .hero__slide--negozio {
    background-position: center 40%;
  }

  .hero__slide--lounge {
    background-position: center 55%;
  }
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
}

.hero__slide--lounge::after {
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero__shell {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero__content {
  pointer-events: auto;
  width: min(100%, 34rem);
  padding: 2rem 0;
  margin: 0;
  animation: heroIn 0.8s ease both;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__text {
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  max-width: 32rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  pointer-events: none;
}

.hero__arrow {
  pointer-events: auto;
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats */
.stats {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats__grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 720px;
  margin-inline: auto;
}

.stats__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.stats__footnote {
  margin: 1.25rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.stat__value[data-stat-format="days"] {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Van / feature band */
.van {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.van__media {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(20, 40, 160, 0.85), rgba(0, 0, 0, 0.55)),
    url("../img/hero-phone.svg") center/cover;
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.van__media h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.5rem;
}

.van__media p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Trust cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft-2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: #111;
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  flex: 1;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Why us */
.why {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.why__points {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.why__point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.why__bullet {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.why__point h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.why__point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.why__panel {
  background: #111;
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.why__metric strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.why__metric span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, #0d0f14 0%, #1a2340 55%, #1428a0 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.contact-mini {
  display: grid;
  gap: 0.85rem;
}

.contact-mini__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.contact-mini__item h4 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.contact-mini__item p,
.contact-mini__item a {
  margin: 0;
  font-weight: 600;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.review-card__stars {
  color: #111;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.review-card p {
  margin: 0 0 1rem;
  color: #333;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.92rem;
}

.review-card__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Verify */
.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.verify-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.75rem;
  background: #fff;
}

.verify-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.verify-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.verify-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #0d0f14;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

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

.footer-sede + .footer-sede {
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}

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

.page-hero {
  padding: 4rem 0 2rem;
  background: var(--soft);
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.status-result {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem;
  background: #fff;
  min-height: 10rem;
}

.status-result--error {
  border-color: #d9d9d9;
  background: var(--soft);
}

.status-result__msg {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.status-result__badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.status-result__badge--open {
  background: #e8f0ff;
  color: var(--accent);
}

.status-result__badge--closed {
  background: #ebebeb;
  color: #333;
}

.status-result__title {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.status-result__state {
  margin: 0 0 1.25rem;
  color: #333;
}

.status-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}

.status-result__grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.status-result__grid dd {
  margin: 0;
  font-weight: 600;
}

.status-result__sub {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

@media (max-width: 800px) {
  .status-layout {
    grid-template-columns: 1fr;
  }

  .status-result__grid {
    grid-template-columns: 1fr;
  }
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.75rem 0.25rem;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__cta {
    width: fit-content;
    margin-top: 0.5rem;
  }

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

  .van,
  .why,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .services-grid,
  .reviews-grid,
  .verify-grid,
  .stats__grid:not(.stats__grid--2),
  .stats__grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Hero su telefono.
   Verticale: immagine portrait (--hero-mb). Orizzontale: immagine desktop (--hero-pc). */
@media (max-width: 767px) {
  .hero__content {
    padding: 2.5rem 0 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .hero__nav {
    bottom: 1rem;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero__text {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero {
    /* ~proporzione crop mobile */
    height: min(92vh, 720px);
    height: min(92svh, 720px);
    min-height: 520px;
  }

  .hero__shell {
    align-items: flex-start;
  }

  .hero__slide {
    background-image: var(--hero-mb);
    background-position: center top;
  }

  /* In verticale si scorre col dito: le frecce coprirebbero la foto */
  .hero__arrow {
    display: none;
  }

  /* Le mb hanno già gradient/badges: overlay leggero solo sul testo */
  .hero__slide--negozio::after,
  .hero__slide--lounge::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.08) 42%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
}

/* Telefoni grandi, pieghevoli aperti e piccoli tablet in verticale:
   hero meno alto e foto ancorata in basso, così non resta mezza schermata nera */
@media (min-width: 520px) and (max-width: 767px) and (orientation: portrait) {
  .hero {
    height: min(80vh, calc(60vw + 290px));
    height: min(80svh, calc(60vw + 290px));
    min-height: 460px;
  }

  .hero__slide--negozio,
  .hero__slide--lounge {
    background-position: center bottom;
  }

  .hero__slide--negozio::after,
  .hero__slide--lounge::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 38%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }
}

/* Telefono in orizzontale: immagine desktop, non quella verticale */
@media (max-width: 767px) and (orientation: landscape) {
  .hero__slide {
    background-image: var(--hero-pc);
    background-position: center center;
  }

  .hero__slide--negozio {
    background-position: center 40%;
  }

  .hero__slide--lounge {
    background-position: center 55%;
  }
}

/* Schermi bassi in orizzontale: l'hero non supera lo schermo */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .hero {
    height: max(280px, calc(100vh - var(--header-h)));
    height: max(280px, calc(100svh - var(--header-h)));
  }

  .hero__content {
    padding: 1rem 0 3.5rem;
  }

  .hero__nav {
    justify-content: flex-end;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .trust-grid,
  .services-grid,
  .reviews-grid,
  .stats__grid:not(.stats__grid--2),
  .stats__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* terza card da sola: a tutta larghezza */
  .trust-grid > :last-child:nth-child(odd),
  .reviews-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   v1.1 — rifiniture responsive
   ========================================================================== */

/* Barra di amministrazione WordPress: l'header sticky non ci finisce sotto */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* Header: su schermi stretti i loghi si restringono invece di spingere fuori il menu */
.brand {
  min-width: 0;
  flex-shrink: 1;
}

.nav-toggle {
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .site-header__inner {
    gap: 0.75rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand__cre {
    height: 18px;
  }

  .brand__samsung {
    height: 16px;
  }

  .brand__divider {
    height: 18px;
  }
}

/* Menu mobile: voci comode da toccare, scorrevole se più alto dello schermo */
@media (max-width: 980px) {
  .nav {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__cta {
    min-height: 44px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }
}

/* Frecce dell'hero visibili anche su tablet e telefono */
.hero__arrow {
  width: 44px;
  height: 44px;
}

/* Pulsanti */
.btn {
  min-height: 44px;
  text-align: center;
}

.btn-row--center {
  justify-content: center;
  margin-top: 1.5rem;
}

/* Telefono: i pulsanti riempiono la riga (affiancati se ci stanno, altrimenti impilati) */
@media (max-width: 480px) {
  .btn-row .btn {
    flex: 1 1 auto;
  }

  .hero .btn {
    padding-inline: 1.1rem;
  }
}

/* Schermi da 320px: i due pulsanti dell'hero restano su una riga */
@media (max-width: 350px) {
  .hero .btn-row {
    gap: 0.5rem;
  }

  .hero .btn {
    padding: 0.8rem 0.75rem;
    font-size: 0.86rem;
    gap: 0.3rem;
  }
}

/* CTA: gli orari non restano incollati ai pulsanti */
.cta-band .cta-band__meta {
  margin: 1.25rem 0 0;
}

.cta-band > *,
.why > *,
.status-layout > * {
  min-width: 0;
}

/* Link piccoli: area di tocco più alta su schermi touch */
.footer-list a,
.footer-legal a,
.footer-sede a,
.service-card__link {
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-list {
  gap: 0.2rem;
}

/* Campi dei form */
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

/* Sezioni più compatte sul telefono */
@media (max-width: 600px) {
  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .stats {
    padding: 2rem 0;
  }

  .stat__value {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }
}

/* Contenuto scritto dall'editor di WordPress (es. Privacy Policy) */
.entry-content {
  max-width: 46rem;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 2rem 0 0.75rem;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
}

/* ==========================================================================
   v1.2 — icone Samsung, nota sigilli, riquadri informativi
   ========================================================================== */

.icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.trust-card__icon .icon {
  width: 24px;
  height: 24px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}

.service-card__icon .icon {
  width: 28px;
  height: 28px;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.contact-mini__item h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-mini__item h4 .icon {
  width: 16px;
  height: 16px;
}

/* Nota sui sigilli ITQF */
.stats__footnote {
  max-width: 56rem;
  line-height: 1.5;
  font-size: 0.75rem;
}

.stats__footnote a {
  text-decoration: underline;
}

/* Fascia pellicola pieghevoli */
.promo-band {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.promo-band__icon,
.note-box__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.promo-band__icon .icon,
.note-box__icon .icon {
  width: 26px;
  height: 26px;
}

.promo-band h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.promo-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Riquadro informativo (Modalità Manutenzione) */
.note-box {
  margin-top: 2.5rem;
  max-width: 36rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.note-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.note-box a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .promo-band {
    grid-template-columns: auto 1fr;
  }

  .promo-band .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .promo-band,
  .note-box {
    grid-template-columns: 1fr;
  }
}

/* Slide Lounge su schermi orizzontali: i sigilli restano interi e fuori dal testo.
   La foto è 2,25:1 con i sigilli nel terzo inferiore. */
@media (min-width: 768px) and (max-width: 1199px), (max-width: 767px) and (orientation: landscape) {
  .hero__slide--lounge {
    background-position: center bottom;
  }

  .hero__shell {
    align-items: flex-start;
  }

  .hero__content {
    padding-top: 2.25rem;
    width: min(100%, 40rem);
  }
}

@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .hero__content {
    padding-top: 0.9rem;
  }

  .hero__title {
    margin-bottom: 0.5rem;
  }

  .hero__text {
    margin-bottom: 0.7rem;
  }
}

@media (min-width: 1200px) {
  .hero {
    --hero-h: clamp(400px, 36vw, 540px);
  }

  /* frecce sotto il testo, non sopra i sigilli */
  .hero__nav {
    justify-content: flex-start;
  }

  /* Foto intera ancorata a destra, sfumata nel fondo scuro verso il testo */
  .hero__slide--lounge {
    background-image:
      linear-gradient(
        90deg,
        #111 calc(100% - var(--hero-h) * 2.25),
        rgba(17, 17, 17, 0) calc(100% - var(--hero-h) * 2.25 + 16%)
      ),
      var(--hero-pc);
    background-size: auto, auto 100%;
    background-position: 0 0, right center;
  }
}
