/* parallelo 44 — foglio di stile unico. Nessuna risorsa esterna. */

/* ---------------------------------------------------------------- font */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Font di riserva con metriche allineate a Inter: riduce il salto di layout mentre Inter si carica. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

/* ---------------------------------------------------------------- token */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #141414;
  --muted: #55554f;
  --border: #dedcd6;
  --accent: #003399;
  --accent-strong: #002676;
  --accent-soft: rgba(0, 51, 153, 0.07);
  --on-accent: #ffffff;
  --radius: 14px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 60px;
  --wa-bar-h: 72px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}
body.has-wa-bar { padding-bottom: calc(var(--wa-bar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  body.has-wa-bar { padding-bottom: 0; }
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.375rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.75rem);
  max-width: 26ch;
}
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
p, li { max-width: 65ch; }
ul, ol { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--accent-strong); }

img { max-width: 100%; height: auto; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}
.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.btn-small {
  min-height: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }

.lang-nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-nav li { max-width: none; }
.lang-nav li + li::before {
  content: "·";
  color: var(--muted);
}
.lang-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.4rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-nav a:hover { color: var(--accent); }
.lang-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.header-cta { display: none; }
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 3rem 3.5rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-sub {
  max-width: 50ch;
  margin-bottom: 1.75rem;
  font-size: 1.1875rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-langs {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
}
.hero-langs a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}
.hero-langs a:hover { text-decoration: underline; }
.hero-langs a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.hero-langs .sep { color: var(--muted); }
.hero-figure { margin: 2.5rem 0 0; }
.hero-figure {
  max-width: 560px;
  margin-inline: auto;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* Didascalie sotto i due telefoni: nell'immagine i telefoni sono centrati al 25% e al 75%. */
.hero-figure figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-figure figcaption { font-size: 1.25rem; }
}
@media (min-width: 768px) {
  .hero-sub { font-size: 1.3125rem; }
}
@media (min-width: 960px) {
  .hero { padding-block: 5rem 6rem; }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }
  .hero h1 { font-size: clamp(2.375rem, 1.4rem + 4vw, 3.75rem); }
  .hero-figure { margin: 0 auto; }
}

/* ---------------------------------------------------------------- sezioni */
.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}
.section > .container > h2 { margin-bottom: 2rem; }
@media (min-width: 768px) {
  .section { padding-block: 6rem; }
  .section > .container > h2 { margin-bottom: 2.75rem; }
}

/* come funziona */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  max-width: none;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* card */
.grid { display: grid; gap: 1.25rem; }
.grid-services,
.grid-prices { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.card p:last-child { margin-bottom: 0; }

/* tre lingue */
.langs-mark {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: none;
}
.langs-line { color: var(--muted); }
@media (min-width: 960px) {
  .langs-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: start;
  }
  .langs-mark { margin: 0; }
}

/* prezzi */
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.vat-note {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 2.75rem; }
}
.price-group {
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
}
.price-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.price-group h3 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.price-card { display: flex; flex-direction: column; }
.price-card h4 {
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 1.0625rem;
}
.price {
  margin: 0 0 1rem;
  max-width: none;
  font-weight: 700;
  font-size: 2.125rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.price .vat {
  font-size: 0.62em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price .price-from,
.price small {
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
}
.price small { display: block; margin-top: 0.15rem; }
.features {
  margin: 0;
  padding-left: 1.2rem;
}
.features li { margin-bottom: 0.4rem; }
.features li::marker { color: var(--accent); }
.card-line {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.price-card .card-line { margin-top: auto; padding-top: 1.25rem; }
.price-card .features { margin-bottom: 1.25rem; }
.group-line {
  max-width: 72ch;
  margin: 1.5rem 0 0;
  font-size: 1rem;
}
.details-box {
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.details-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.details-box summary::-webkit-details-marker { display: none; }
.details-box summary::after,
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin: 0 6px 5px 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.details-box[open] summary::after,
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.details-box[open] summary { border-bottom: 1px solid var(--border); }
.details-box ul {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem 2.5rem;
}
.details-box li {
  max-width: 72ch;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}
.details-box li:last-child { margin-bottom: 0; }
.details-box li::marker { color: var(--accent); }
.price-cta { margin: 1.5rem 0 0; }
.price-common {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.price-common ul {
  margin: 0;
  padding-left: 1.2rem;
}
.price-common li { max-width: 72ch; }

/* faq */
.faq { max-width: 76ch; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details > p { margin: 0 0 1.25rem; }
.faq summary:focus-visible { outline-offset: 0; }

/* cta finale */
.final-inner {
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}
.final-inner h2,
.final-inner p { margin-inline: auto; }
.final-inner p { margin-bottom: 1.75rem; }
.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .final-inner { padding: 4rem 3rem; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li { max-width: none; }
.footer-list li + li::before {
  content: "·";
  padding: 0 0.5em;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- barra WhatsApp (solo telefono) */
.wa-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 249, 0.96);
  border-top: 1px solid var(--border);
}
.wa-bar .btn { width: 100%; }
@media (min-width: 768px) {
  .wa-bar { display: none; }
}

/* ---------------------------------------------------------------- galleria + schermo intero */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { max-width: none; }
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0c0c0c;
  color: #fff;
}
.lightbox::backdrop { background: #0c0c0c; }
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 16px;
}
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-btn:focus-visible { outline-color: #fff; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox[data-single] .lightbox-prev,
.lightbox[data-single] .lightbox-next { display: none; }

/* ---------------------------------------------------------------- pagina privacy */
.page { padding-block: 3rem 4rem; }
.page h1 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
.page h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}
.page p { max-width: 70ch; }
@media (min-width: 768px) {
  .page { padding-block: 5rem 6rem; }
}

/* ---------------------------------------------------------------- movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
