/* Italdigitale · stile "Tech chiaro" con l'identità corallo.
   Pensato anche per anziani: testo grande, contrasto alto, bottoni ampi, niente animazioni vistose. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1e2228;
  --muted: #4b525c;
  --coral: #ff5a36;
  --coral-light: #ff8f73;
  --coral-ink: #c2370f; /* 5,5:1 su bianco: per testi, link e bottoni */
  --coral-soft: #fff1ec;
  --bg: #ffffff;
  --bg-alt: #f7f6f4;
  --border: #e7e3dd;
  --wa: #157a3c;
  --wa-hover: #0f6330;
  --focus: #1e2228;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(30 34 40 / 5%), 0 8px 24px rgb(30 34 40 / 7%);
  --shadow-lg: 0 2px 4px rgb(30 34 40 / 6%), 0 18px 48px rgb(30 34 40 / 12%);
  --wrap: 1160px;
  --narrow: 780px;
  --gutter: 20px;
  --font-head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --dots: radial-gradient(rgb(30 34 40 / 9%) 1.2px, transparent 1.3px) 0 0 / 22px 22px;
}

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

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 118.75%; /* 19px */
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--coral-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  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: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow {
  max-width: var(--narrow);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.muted {
  color: var(--muted);
  font-size: 0.9em;
}

/* Bolle con icona */

.bubble {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  flex: none;
}

.bubble .icon {
  width: 26px;
  height: 26px;
}

.bubble-sm {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.bubble-sm .icon {
  width: 22px;
  height: 22px;
}

.bubble-lg {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.bubble-xl {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bubble-xl .icon {
  width: 46px;
  height: 46px;
}

.bubble-dark {
  background: rgb(255 255 255 / 12%);
  color: var(--coral-light);
}

/* Header */

.site-header {
  position: relative;
  z-index: 60;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
}

.main-nav {
  display: none;
}

/* Menu da telefono e tablet: un bottone con la parola "Menu", senza JavaScript. */
.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-menu[open] .menu-icon {
  background: transparent;
}

.mobile-menu[open] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu[open] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 16px;
}

.mobile-menu-panel ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wrap);
}

.mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu-panel li:last-child a {
  border-bottom: 0;
}

.mobile-menu-panel a[aria-current='page'] {
  color: var(--coral-ink);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 -10px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--bg-alt);
}

.main-nav a[aria-current='page'] {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

/* Pulsante "Chiama" in alto: bordo sottile, così si capisce che è un pulsante. */
.btn.btn-call {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-call .icon {
  color: var(--coral-ink);
}

.btn.btn-call:hover {
  background: var(--coral-soft);
  border-color: var(--coral-ink);
  color: var(--ink);
}

@media (min-width: 1040px) {
  .logo {
    height: 40px;
  }

  .main-nav {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .main-nav ul {
    margin: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .header-actions {
    display: flex;
  }
}

@media (min-width: 1040px) {
  .main-nav ul {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .main-nav a {
    padding: 0 10px;
  }
}

@media (min-width: 1040px) and (max-width: 1199px) {
  .call-word {
    display: none;
  }
}

/* Bottoni */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn-lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.06rem;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-hover);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--coral-ink);
  border-color: var(--coral-ink);
}

.btn-outline:hover {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0;
}

@media (max-width: 520px) {
  .cta-row .btn {
    width: 100%;
  }
}

.text-link {
  font-weight: 700;
}

/* Etichette e intestazioni */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.1em;
}

.kicker {
  font-weight: 700;
  color: var(--coral-ink);
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38em;
}

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

.note-box {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 1.5em;
}

/* Sezioni */

.section {
  padding: 64px 0;
}

@media (max-width: 639px) {
  .section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 1.4rem;
  }
}

.section.dots {
  background: var(--dots), var(--bg-alt);
}

.page-head {
  background: var(--dots), var(--bg-alt);
  padding: 4px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-hero {
  align-items: center;
}

.page-intro h1 {
  max-width: 24ch;
}

.split {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split-wide {
    grid-template-columns: 1.55fr 1fr;
  }

  .split-media {
    align-items: center;
  }

  /* Intestazione con foto: colonna del testo più larga, così i due bottoni stanno affiancati. */
  .split.page-hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
}

.stack {
  display: grid;
  gap: 18px;
}

/* Hero */

.hero {
  background: var(--dots), linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 48px;
  }
}

.h1-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--coral-ink);
  margin-bottom: 0.7em;
}

h1 em {
  font-style: normal;
  color: var(--coral-ink);
}

/* Da telefono il disegno della chat è solo decorativo: lo nascondiamo per arrivare prima ai contenuti. */
@media (max-width: 639px) {
  .hero-visual {
    display: none;
  }
}

.hero-visual {
  position: relative;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% -6% 8% 8%;
  background: var(--coral);
  opacity: 0.14;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

.phone {
  position: relative;
  width: 260px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.phone-top strong,
.phone-top small {
  display: block;
  line-height: 1.25;
}

.phone-top small {
  color: var(--wa);
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral-soft);
}

.phone-avatar img {
  width: 24px;
  height: 24px;
}

.phone-chat {
  background: var(--bg-alt);
  border-radius: 0 0 26px 26px;
  padding: 14px 12px 22px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  margin: 0;
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgb(30 34 40 / 8%);
}

.msg-in {
  background: #fff;
  border-bottom-left-radius: 4px;
}

.msg-out {
  align-self: flex-end;
  background: #dcf5e3;
  border-bottom-right-radius: 4px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
}

.float-card .icon {
  color: var(--coral-ink);
}

.float-price {
  bottom: 2%;
  left: -8%;
}

.float-safe {
  top: 0;
  right: -12%;
}

@media (max-width: 400px) {
  .float-price {
    left: 0;
  }

  .float-safe {
    right: 0;
  }
}

/* Striscia di fiducia */

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

@media (min-width: 1040px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.trust strong,
.trust small {
  display: block;
  line-height: 1.3;
}

.trust small {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 639px) {
  .trust li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  .trust strong {
    font-size: 0.95rem;
  }
}

/* Card servizi */

.cards {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--coral);
  color: var(--ink);
}

.card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card .bubble {
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .cards-wide {
    grid-column: span 2;
  }
}

/* Da telefono: schede compatte, con l'icona accanto al testo. */
@media (max-width: 639px) {
  .cards {
    gap: 12px;
  }

  .card {
    padding: 16px 18px;
  }

  .card-inner {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .card-body {
    display: contents;
  }

  .card .bubble {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 0;
  }

  .card .bubble .icon {
    width: 20px;
    height: 20px;
  }

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

  .card-body > p {
    grid-column: 1 / -1;
  }

  .card-body > p:first-of-type {
    margin-top: 8px;
  }

  .card p {
    font-size: 0.95rem;
    margin-bottom: 0.5em;
  }

  .card-meta {
    font-size: 0.85rem;
  }
}

/* Schede con foto (pagina Servizi) */
.cards-photo .card {
  padding: 0;
}

.card-photo {
  aspect-ratio: 16 / 9;
  background: var(--coral-soft);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-photo .card-inner {
  padding: 22px 24px 24px;
}

.cards-photo .card-remote {
  flex-direction: row;
}

.cards-photo .card-remote .card-photo {
  flex: 0 0 50%;
  aspect-ratio: auto;
}

@media (max-width: 639px) {
  .card-photo {
    aspect-ratio: 21 / 9;
  }

  .cards-photo .card-inner {
    padding: 14px 18px 16px;
  }

  .cards-photo .card-remote {
    flex-direction: column;
  }

  .cards-photo .card-remote .card-photo {
    flex: none;
    aspect-ratio: 21 / 9;
  }
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-meta .icon {
  color: var(--coral-ink);
}

.card-remote {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.card-remote:hover {
  color: #fff;
}

.card-remote p {
  color: #d5d9df;
}

.card-remote .card-meta .icon {
  color: var(--coral-light);
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.15s ease, border-color 0.15s ease;
  }

  .card:hover {
    transform: translateY(-2px);
  }
}

/* Passi */

.steps {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

@media (max-width: 639px) {
  .steps {
    gap: 12px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 16px 18px;
  }

  .steps li .step-n {
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 1.1rem;
  }

  .steps li h3 {
    margin: 0;
  }

  .steps li p {
    grid-column: 1 / -1;
    margin: 8px 0 0;
  }
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Tariffario */

.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.2em;
}

.tariff {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tariff thead th:first-child {
  width: 34%;
}

.tariff .muted {
  white-space: nowrap;
}

.tariff th,
.tariff td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.tariff thead th {
  background: var(--coral-soft);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}

.tariff thead .icon {
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 6px;
  color: var(--coral-ink);
}

.tariff tbody tr:last-child > * {
  border-bottom: 0;
}

.tariff tbody th {
  font-weight: 600;
}

.tariff td strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--coral-ink);
}

@media (max-width: 600px) {
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .tariff,
  .tariff tbody,
  .tariff tr,
  .tariff th,
  .tariff td {
    display: block;
  }

  .tariff thead {
    display: none;
  }

  .tariff tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .tariff th,
  .tariff td {
    border: 0;
    padding: 6px 18px;
  }

  .tariff td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
  }
}

.includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.includes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.6em;
}

.includes .icon {
  color: var(--wa);
  margin-top: 0.2em;
  stroke-width: 2.6;
}

.tariff-box,
.contact-box,
.rule-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.tariff-box {
  border-top: 5px solid var(--coral);
}

@media (min-width: 900px) {
  .split-wide > .tariff-box {
    position: sticky;
    top: 24px;
  }
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.2em;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--coral);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.price-card-remote {
  border-top-color: var(--ink);
}

.price-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 0.4em;
}

.price-card-title .icon {
  color: var(--coral-ink);
}

.price-card .price-big {
  font-size: 2.1rem;
}

.price-card .price-big span {
  display: block;
  margin-top: 2px;
}

.price-card .price-next {
  margin: 0.5em 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 400px) {
  .price-card {
    padding: 16px;
  }

  .price-card .price-big {
    font-size: 1.8rem;
  }
}

.tariff-box h2,
.contact-box h2 {
  font-size: 1.3rem;
}

.price-big {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--coral-ink);
  margin-bottom: 0;
  line-height: 1.1;
}

.price-big span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.price-next {
  color: var(--muted);
  font-weight: 600;
}

.rule-card .bubble {
  margin-bottom: 14px;
}

@media (max-width: 639px) {
  .rule-card {
    padding: 18px;
  }

  .rule-card .bubble {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

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

.rule-card-soft {
  background: var(--coral-soft);
  border-color: transparent;
  box-shadow: none;
}

.rule-card-soft .bubble {
  background: #fff;
}

/* Elenco servizi con durata */

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.service-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.service-list li:last-child {
  border-bottom: 0;
}

.service-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1 1 320px;
}

.service-label .icon {
  color: var(--wa);
  margin-top: 0.2em;
  stroke-width: 2.6;
}

.duration-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.duration-chip .icon {
  color: var(--coral-ink);
}

.duration-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.duration-note .icon {
  margin-top: 0.2em;
  color: var(--coral-ink);
}

/* Zone */

.zones {
  display: grid;
  gap: 16px;
  margin-bottom: 1em;
}

@media (min-width: 860px) {
  .zones {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .zone {
    padding: 18px !important;
  }

  .zone p {
    font-size: 0.95rem;
  }
}

.zone {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.zone::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--coral);
}

.zone-2::before {
  background: var(--coral-light);
}

.zone-3::before {
  background: var(--ink);
}

.zone .zone-fee {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 6px 0 0.3em;
}

.zone h3 {
  font-size: 1.05rem;
}

.zone p {
  color: var(--muted);
}

.zone .zone-rule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.zone-rule .icon {
  margin-top: 0.15em;
  color: var(--coral-ink);
}

.area-links {
  font-weight: 600;
}

/* Calcolatore dell'uscita */

.zone-check {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  max-width: 760px;
}

.zone-check[hidden] {
  display: none;
}

.zone-check-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.zone-check-head h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2em;
}

.zone-check-head p {
  color: var(--muted);
  margin-bottom: 0.8em;
}

.zone-check-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.zone-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-check-row input {
  flex: 1 1 260px;
  min-height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
}

.zone-check-row input:focus {
  border-color: var(--ink);
  outline: none;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  min-height: 54px;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn-dark:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 520px) {
  .zone-check {
    padding: 16px;
  }

  .zone-check-row .btn {
    width: 100%;
  }

  .zone-result {
    padding: 16px 14px;
  }

  .zone-result .btn {
    width: 100%;
    padding: 0 14px;
  }
}

.zone-result {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border-top: 5px solid var(--border);
}

.zone-result.is-zone-1 {
  border-top-color: var(--coral);
}

.zone-result.is-zone-2 {
  border-top-color: var(--coral-light);
}

.zone-result.is-zone-3 {
  border-top-color: var(--ink);
}

.zone-result.is-loading {
  border-top-color: var(--border);
  color: var(--muted);
}

.zone-result p {
  margin: 0 0 0.4em;
}

.zone-result-kicker {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.zone-result-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.zone-result-hint {
  font-size: 0.92rem;
  color: var(--muted);
}

.zone-result .btn {
  margin-top: 10px;
}

.zone-check-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.zone-check-note a {
  color: var(--muted);
}

/* Immagini */

.photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--coral-soft);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(rgb(194 55 15 / 14%) 1.4px, transparent 1.5px) 0 0 / 20px 20px, var(--coral-soft);
}

/* FAQ */

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  min-height: 52px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--coral-ink);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
}

/* Liste */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0.7em;
}

.checklist .icon {
  color: var(--wa);
  margin-top: 0.2em;
  stroke-width: 2.6;
}

.tag-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}

.tag-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
}

.pill-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.pill-list a .icon {
  color: var(--coral-ink);
}

.pill-list a:hover {
  border-color: var(--coral);
}

.simple-list {
  padding-left: 1.3em;
}

.simple-list li {
  margin-bottom: 0.5em;
}

.case-list {
  list-style: none;
  padding: 0;
}

.case-list li {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.case-meta {
  font-weight: 700;
  color: var(--coral-ink);
  margin-bottom: 0.3em;
}

/* Guide */

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

.guide-list a {
  display: block;
  padding: 26px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.guide-list a:hover {
  border-color: var(--coral);
}

.guide-list h2,
.guide-list h3 {
  font-size: 1.35rem;
}

/* Servizio collegato in fondo alle guide */
.related-service {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 2.2em;
  padding: 24px;
  background: var(--coral-soft);
  border-radius: var(--radius);
}

.related-service .bubble {
  background: #fff;
}

.related-service h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

.related-service .kicker {
  margin-bottom: 0.2em;
}

@media (max-width: 520px) {
  .related-service {
    flex-direction: column;
    padding: 20px;
  }
}

.guide-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.3em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  background: var(--coral-soft);
  border-radius: var(--radius-sm);
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-size: 0.92em;
}

.toc {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 1.5em;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5em;
}

.toc ol {
  margin: 0;
}

/* Percorso */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 18px 0 18px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
}

/* Invito finale */

.cta-final {
  padding: 24px 0 72px;
}

.cta-final .wrap {
  background: var(--dots), var(--coral-soft);
  border-radius: 32px;
  padding: 48px 28px;
  text-align: center;
  max-width: calc(var(--narrow) + 120px);
}

@media (max-width: 639px) {
  .cta-final {
    padding-bottom: 48px;
  }

  .cta-final .wrap {
    width: auto;
    margin: 0 var(--gutter);
    padding: 32px 18px;
    border-radius: 24px;
  }
}

.cta-final .cta-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}

.cta-final p {
  color: var(--muted);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #d5d9df;
  padding: 52px 0 24px;
}

.site-footer a {
  color: #fff;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.footer-grid > :first-child {
  grid-column: 1 / -1;
}

/* Da telefono: Contatti e Informazioni affiancati, le zone sotto a tutta larghezza. */
@media (max-width: 759px) {
  .footer-grid > :nth-child(3) {
    order: 1;
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

.footer-title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.6em;
}

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

.site-footer li {
  margin-bottom: 0.45em;
}

.footer-legal {
  border-top: 1px solid #3a404a;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.85rem;
}

/* Barra fissa su mobile */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgb(30 34 40 / 8%);
}

.mobile-bar .btn {
  min-height: 54px;
  padding: 0 12px;
}

@media (max-width: 1039px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1040px) {
  .mobile-bar {
    display: none;
  }
}

.wa-float {
  display: none;
}

@media (min-width: 1040px) {
  .wa-float {
    display: inline-flex;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    min-height: 56px;
    box-shadow: 0 6px 20px rgb(21 122 60 / 35%);
  }
}

@media print {
  .main-nav,
  .mobile-bar,
  .wa-float,
  .cta-row,
  .cta-final,
  .hero-visual {
    display: none;
  }
}

/* Riassunto "In breve" nelle pagine servizio */

.summary-box {
  background: var(--coral-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 44px;
  max-width: var(--narrow);
}

.summary-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.summary-box > p {
  margin: 0;
  font-size: 1.05rem;
}

.summary-facts {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-facts li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.summary-facts .icon {
  color: var(--coral-ink);
  margin-top: 0.1em;
}

@media (max-width: 639px) {
  .summary-box {
    padding: 18px;
    margin-bottom: 32px;
  }

  .summary-facts {
    flex-direction: column;
  }
}
