/* =========================================================
   Pixelvalley — foglio di stile (mobile-first)
   Breakpoint: 768px (tablet), 1024px (desktop)
   ========================================================= */

/* ---------- Variabili colore e tipografia ---------- */
:root {
  --navy: #1c2a4a;          /* titoli, sezione "Perché sceglierci", footer */
  --navy-soft: #3a4763;     /* testo corrente */
  --teal: #2f7f7a;          /* eyebrow, icone servizi, link */
  --teal-light: #e3efed;    /* sfondo icone servizi, badge hero */
  --gold: #c99a3b;          /* bottoni principali, accenti */
  --gold-dark: #b48629;
  --bg: #f3f4f6;            /* sfondo hero / pacchetti */
  --card: #f6f7f9;          /* card servizi, pannello form */
  --white: #ffffff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --why-text: #b9c6e0;      /* testo chiaro su navy (valore stimato) */

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --container: 1120px;
  --section-y: 64px;
}

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-y) 0; }
.br-desktop { display: none; }

/* ---------- Elementi comuni: eyebrow, titoli, bottoni ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--center { text-align: center; }

.section-title { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.section-title--center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #26375e; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }

.icon-box {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 2px;
  margin-bottom: 18px;
}
.icon-box svg,
.contact-list svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-box--gold { background: var(--gold); color: var(--navy); }

/* =========================================================
   HEADER / NAV (screenshot 4, barra in alto)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 246, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* Logo: simbolo SVG + scritta "Pixel" navy / "valley" teal come nel logo ufficiale */
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 18px "Montserrat", var(--font-head); letter-spacing: -.02em; color: #1c2f5a; }
.logo img { height: 26px; width: auto; }
.logo-accent { color: #1f7f78; }
.logo--light { color: var(--white); }
.logo--light img { height: 22px; }
.logo--light .logo-accent { color: #4fc1b6; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile: pannello a tendina */
.main-nav {
  position: absolute;
  top: 60px; left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.main-nav.is-open { display: flex; }
.main-nav a { padding: 10px 0; font-size: 14px; color: var(--navy); }
.main-nav a:not(.btn):hover { color: var(--teal); }
.main-nav .btn { margin-top: 8px; padding: 12px 16px; }

/* =========================================================
   HERO (screenshot 4)
   ========================================================= */
.hero { background: var(--bg); padding: 48px 0 64px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border: 1px solid #c5ddd9;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-subtitle { font: 600 20px/1.3 var(--font-head); color: var(--navy); margin-bottom: 18px; }
.hero-lead { max-width: 440px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 440 / 560;
  object-fit: cover;
  object-position: 40% center;   /* inquadra il lungolago illuminato */
  border-radius: 2px;
  box-shadow: 0 14px 30px -12px rgba(28, 42, 74, .35);
}
.hero-media figcaption {
  margin-top: 14px;
  padding-top: 6px;
  border-top: 1px solid #d9dce2;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* =========================================================
   COSA OFFRIAMO (screenshot 3, parte alta)
   ========================================================= */
.services { background: var(--white); }
.title-rule {
  width: 280px; max-width: 70%;
  height: 1px; border: 0;
  margin: 18px 0 36px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.services-grid { display: grid; gap: 12px; }
.service-card {
  background: var(--card);
  border: 1px solid #eceef1;
  border-radius: var(--radius);
  padding: 22px 20px 26px;
}
.service-card h3 { font: 600 14px var(--font-body); margin-bottom: 8px; }
.service-card p { font-size: 12.5px; color: var(--navy-soft); }
/* Card "Hai bisogno di altro?": sfondo bianco, bordo sinistro */
.service-card--cta { background: var(--white); border-color: transparent; border-left: 1px solid var(--border); padding-top: 28px; }
.service-card--cta p { margin-bottom: 18px; }
.text-link { font-size: 12.5px; font-weight: 600; color: var(--teal); }
.text-link:hover { text-decoration: underline; }

/* =========================================================
   PERCHÉ SCEGLIERCI (screenshot 3, fascia navy)
   ========================================================= */
.why { background: var(--navy); padding: 72px 0 88px; }
.why .section-title { color: var(--white); margin-bottom: 36px; }
.why-grid { display: grid; gap: 32px; }
.why-item { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.why-item h3 { font: 700 15px var(--font-head); color: var(--white); margin-bottom: 6px; }
.why-item p { font-size: 12.5px; color: var(--why-text); }

/* =========================================================
   PACCHETTI (screenshot 2)
   ========================================================= */
.pricing { background: var(--bg); border-top: 1px solid var(--border); }
.pricing .section-title { margin-bottom: 40px; }
.pricing-grid { display: grid; gap: 24px; max-width: 500px; margin: 0 auto; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: 0 2px 10px rgba(28, 42, 74, .06);
}
.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.price { font: 700 28px var(--font-head); color: var(--navy); margin-bottom: 16px; }
.price span { font: 400 11px var(--font-body); color: var(--muted); }
.features { flex: 1; margin-bottom: 22px; }
.features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.5;
}
/* Pallino con spunta (teal per Base/Premium, oro per Standard) */
.features li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7f7a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.features--gold li::before {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2a4a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.price-card .btn { padding: 10px 16px; font-size: 12px; }

/* Card consigliata: bordo oro, rialzata, etichetta "CONSIGLIATO" */
.price-card--featured {
  border: 1px solid #ecdcb8;
  box-shadow: 0 14px 34px -10px rgba(201, 154, 59, .35);
}
.ribbon {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-note {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: #7d8aa8;
}

.pricing-more { margin-top: 10px; text-align: center; }

/* =========================================================
   DETTAGLIO SERVIZI (dal PDF "Guida Dettagliata ai Servizi")
   ========================================================= */
.details { background: var(--white); }
.details-lead { max-width: 640px; margin: 12px 0 32px; font-size: 14px; }

/* Schede categoria: senza JS entrambe le categorie restano visibili */
.tabs { display: none; gap: 6px; padding: 4px; margin-bottom: 28px; background: var(--bg); border-radius: 999px; width: max-content; max-width: 100%; }
.js .tabs { display: flex; }
.tab {
  padding: 9px 18px;
  font: 600 13px var(--font-body);
  color: var(--navy-soft);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--navy); }
.tab.is-active { background: var(--navy); color: var(--white); }
.tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.tab-panel + .tab-panel { margin-top: 48px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.js .tab-panel[hidden] { display: none; }
.panel-title { font-size: 20px; margin-bottom: 18px; }
.js .panel-title { display: none; }   /* con le schede il titolo è già nel bottone */
.panel-lead { margin: -8px 0 20px; font-size: 13.5px; }
.js .panel-lead { margin-top: 0; }

/* Abbonamenti: una card per pacchetto */
.plan-grid { display: grid; gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-head { background: var(--navy); padding: 18px 20px; }
.plan-head h4 { font: 700 18px var(--font-head); color: var(--white); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.plan-head p { font-size: 12.5px; font-style: italic; color: var(--why-text); }
.plan--featured { border-color: #ecdcb8; box-shadow: 0 10px 28px -12px rgba(201, 154, 59, .4); }
.plan--featured .plan-head { border-bottom: 3px solid var(--gold); }
.tag {
  padding: 2px 8px;
  font: 700 9px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
}

.detail-list { flex: 1; padding: 18px 20px 6px; }
.detail-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}
.detail-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.detail-list strong { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }

/* Riquadro "Non incluso" (grigio con etichetta rossa, come nel PDF) */
.not-included {
  margin: 0 20px 20px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border-radius: 2px;
}
.not-included span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b8433a;
  margin-bottom: 2px;
}

/* Servizi una tantum: card con bordo teal in alto */
.oneoff-grid { display: grid; gap: 16px; }
.oneoff {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid #eceef1;
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}
.oneoff h4 { font: 700 15px var(--font-head); color: var(--navy); margin: 0; padding: 18px 20px 10px; }
.oneoff dl { flex: 1; margin: 0; padding: 0 20px 8px; }
.oneoff dt { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-top: 8px; }
.oneoff dd { margin: 2px 0 8px; font-size: 12.5px; line-height: 1.55; }
.oneoff .not-included { background: var(--white); }

.details-cta { margin-top: 36px; text-align: center; font-size: 14px; color: var(--navy); }

/* =========================================================
   CONTATTI (screenshot 1, parte alta)
   ========================================================= */
.contact { background: var(--white); border-top: 1px solid var(--border); }
.contact-inner { display: grid; gap: 40px; }
.contact .section-title { font-size: 26px; margin-bottom: 14px; }
.contact-lead { font-size: 13.5px; max-width: 440px; margin-bottom: 26px; }

.person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.person img { width: 36px; height: 36px; object-fit: cover; border-radius: 2px; }
.person-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.person-role { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--navy); }
.contact-list svg { width: 14px; height: 14px; color: var(--navy); }
.contact-list a:hover { color: var(--teal); }

.social-links { margin-top: 18px; }
.social-links li { margin-bottom: 4px; }
.social-links a { font-size: 11px; color: var(--muted); }
.social-links a:hover { color: var(--teal); }

/* Pannello form grigio con campi sottolineati */
.contact-form {
  background: var(--card);
  border: 1px solid #eceef1;
  border-radius: 2px;
  padding: 24px 20px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 4px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 6px 0 8px;
  font: 13px var(--font-body);
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd4dc;
  border-radius: 0;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.field textarea { min-height: 90px; }
.field input::placeholder,
.field textarea::placeholder { color: #a3a9b5; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--teal); }
.field.has-error input,
.field.has-error textarea { border-bottom-color: #c0392b; }
.field-error { display: block; min-height: 0; font-size: 11px; color: #c0392b; margin-top: 4px; }
.contact-form .btn { margin-top: 4px; padding: 10px 16px; font-size: 12px; }
.form-status { margin-top: 12px; font-size: 12.5px; color: var(--teal); min-height: 1em; }
.form-status.is-error { color: #c0392b; }
.contact-form button[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-privacy { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.form-privacy a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================
   FOOTER (screenshot 1, fascia navy in basso)
   ========================================================= */
.site-footer { background: var(--navy); color: var(--why-text); padding: 36px 0 56px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand .logo { font-size: 14px; margin-bottom: 12px; }
.footer-brand p { font-size: 11px; font-weight: 500; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.footer-contact a { color: #f1c9d6; font-weight: 500; }  /* nello screenshot email/telefono sono chiari con riflesso rosato: valore stimato */
.footer-contact a:hover { color: var(--white); }
.footer-ig { display: inline-flex; align-items: center; gap: 6px; }
.footer-ig svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-contact span { color: #8d9ab8; }
.footer-contact .footer-legal a { color: #8d9ab8; font-weight: 400; }
.footer-contact .footer-legal a:hover { color: var(--white); }

/* =========================================================
   PAGINE LEGALI (impressum.html, privacy.html)
   ========================================================= */
.legal { background: var(--white); padding: 48px 0 72px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.legal .updated { font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 14px; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.legal a { color: var(--teal); text-decoration: underline; }
.legal address { font-style: normal; font-size: 14px; line-height: 1.7; }
.legal .back { display: inline-block; margin-bottom: 24px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* =========================================================
   TABLET ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  :root { --section-y: 80px; }
  .br-desktop { display: inline; }
  .section-title { font-size: 32px; }

  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .hero h1 { font-size: 56px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: none; align-items: start; gap: 16px; }
  .price-card--featured { margin-top: -10px; }

  .oneoff-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .contact-form { padding: 28px 24px; }

  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-contact { text-align: right; align-items: flex-end; }
}

/* =========================================================
   DESKTOP ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
  }
  .main-nav a { padding: 0; font-size: 13px; }
  .main-nav .btn { margin-top: 0; padding: 8px 14px; }

  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 64px; }
  .hero-subtitle { font-size: 22px; }
  .hero-media { max-width: 440px; justify-self: end; width: 100%; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { max-width: 960px; margin: 0 auto; gap: 24px; }
  .price-card { padding: 28px 24px 24px; }
  .price-card--featured { margin-top: -18px; padding-bottom: 32px; }

  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .oneoff-grid { grid-template-columns: repeat(3, 1fr); }
}
