:root {
  --ink: #102033;
  --muted: #3d4d63;
  --line: #d5e2f2;
  --blue: #0b63f6;
  --blue-deep: #08357f;
  --paper: rgba(255, 255, 255, 0.97);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #071422;
  padding-bottom: env(safe-area-inset-bottom);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 32, 0.45) 0%, rgba(6, 16, 32, 0.18) 34%, rgba(6, 16, 32, 0.5) 100%),
    url("/dvr/assets/img/dvr-sede-calda.webp") center 20% / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.wrap, .swe-chat { position: relative; z-index: 1; }
.wrap {
  width: min(1120px, calc(100% - 1.25rem));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, video, pre { max-width: 100%; }
a { color: var(--blue-deep); }
header.top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: max(0.7rem, env(safe-area-inset-top)) 0.85rem 0.75rem;
  background: rgba(7, 18, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 1.1rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}
.brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: 0.01em; }
.nav { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; }
.nav a:not(.btn) {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
}
.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
}
.btn-primary, .swe-cta--buy, .btn-green {
  background: linear-gradient(135deg, #0b63f6 0%, #1496e8 55%, #12c2b9 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 99, 246, 0.35);
}
.btn-ghost, .swe-cta--ghost {
  background: #fff;
  color: var(--blue-deep);
  border: 2px solid #0b63f6;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.06); outline: 3px solid #9ad7ff; outline-offset: 2px; }
.swe-actions { display: flex; flex-direction: column; gap: 0.6rem; max-width: 28rem; margin-top: 1rem; }
.swe-cta { width: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  padding-bottom: 1rem;
}
.hero > div, .hero-copy {
  background: var(--paper);
  border-radius: 1.25rem;
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}
.hero h1, h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 0; }
.note {
  background: #f4f8ff;
  border-left: 5px solid #12a37a;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  color: var(--ink);
}
.hero picture, .hero picture img, .mood, .mood img {
  max-width: 100%;
  min-width: 0;
}
.hero picture, .hero picture img, .mood img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero picture {
  display: block;
  min-height: 18rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  border: 3px solid rgba(255, 255, 255, 0.72);
}
.hero picture img { min-height: 18rem; object-position: center 20%; }
.mood {
  position: relative;
  width: min(100%, 42rem);
  margin: 0 auto 1rem;
  aspect-ratio: 3 / 2;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.mood img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 28%;
}
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1.2rem; }
.review, .card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  color: var(--ink);
}
.review header { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.stars { color: #e0a100; letter-spacing: 0.08em; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.9rem; }
.card h2 { margin-top: 0; font-size: 1.25rem; }
.anag-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.anag-main { order: 1; min-width: 0; max-width: 100%; }
.anag-side { order: 2; min-width: 0; max-width: 100%; }
.anag-side .mood { width: 100%; aspect-ratio: 4 / 3; }
.anag-main > h1, .anag-main > .lead {
  background: var(--paper);
  border-radius: 1.1rem;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.anag-main > h1 { margin-bottom: 0.45rem; }
.anag-side .mood img { max-height: none; height: 100%; object-position: center 22%; }
label { display: block; font-weight: 800; margin: 0.85rem 0 0.3rem; }
input, select, textarea {
  width: 100%;
  font-size: 16px;
  padding: 0.75rem 0.8rem;
  border: 1.5px solid #b7c9e2;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid #9ad7ff; border-color: var(--blue); }
textarea { min-height: 6rem; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(4.5rem, 0.6fr); gap: 0.7rem; }
abbr.req { color: #9b1c1c; text-decoration: none; font-weight: 800; }
abbr.fe { color: var(--blue-deep); text-decoration: none; font-weight: 800; }
.hint { color: var(--muted); font-size: 1rem; font-weight: 600; }
h3 { margin: 1.2rem 0 0.2rem; font-size: 1.08rem; }
.ateco-list, .comune-list {
  border: 1.5px solid var(--line);
  border-radius: 0.8rem;
  max-height: min(16rem, 42dvh);
  overflow: auto;
  margin-top: 0.4rem;
  background: #fff;
}
.ateco-list button, .comune-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
}
.ateco-list button strong, .picked strong { color: #0b7a52; }
.ateco-list button.vicino { background: #e9fbf3; font-weight: 700; }
.picked { background: #e9fbf3; border-radius: 0.9rem; padding: 0.85rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; margin: 0.55rem 0; min-height: 44px; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: 0 0 1.35rem; }
.files { font-size: 1rem; color: var(--muted); }
.warn { color: #9a3412; font-weight: 700; }
#preview, #result { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
footer.wrap { padding: 1.4rem 0 5.5rem; color: #f3f7ff; }
footer.wrap a { color: #fff; font-weight: 800; }
.swe-chat {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 1rem));
  height: min(82dvh, 720px);
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  overflow: hidden;
  background: #f4f7fb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  z-index: 30;
}
.swe-chat.open { display: flex; }
.swe-chat__h { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; background: linear-gradient(90deg, #08357f, #0b63f6); color: #fff; }
.swe-chat__h strong { display: block; }
.swe-chat__h span { display: block; font-size: 0.95rem; font-weight: 600; }
.swe-chat__x { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; }
.swe-chat__b { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.swe-chat form { overflow: auto; max-height: 48%; background: #fff; }
.bubble { max-width: 88%; padding: 8px 10px; border-radius: 14px; background: #fff; }
.bubble.mine { align-self: flex-end; background: #d9fbe8; }
.quote-card { background: #fff; border: 1px solid #c5d4ea; border-radius: 12px; padding: 10px; }
.quote-card .swe-cta { margin-top: 8px; }
.cam { background: #0f172a; border-radius: 12px; overflow: hidden; }
.cam video, #scatta-video { width: 100%; max-height: 240px; background: #0f172a; border-radius: 12px; }
.swe-chat__photo { margin: 0; height: 7.2rem; overflow: hidden; }
.swe-chat__photo img { width: 100%; height: 7.2rem; object-fit: cover; object-position: center 30%; }
input[type="file"][capture] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .hero, .grid, .reviews, .anag-layout { grid-template-columns: 1fr; }
  .hero picture { order: -1; }
  .hero-copy { order: 1; }
  .anag-side { position: static; order: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .anag-main { order: 1; }
  .anag-side .mood img, .mood img, .hero picture, .hero picture img { max-height: none; min-height: 0; }
  .mood, .anag-side .mood { aspect-ratio: 3 / 2; }
  header.top { align-items: stretch; }
}
@media (max-width: 640px) {
  .row, .row3, .anag-side { grid-template-columns: 1fr; }
  .nav { width: 100%; }
  .nav .btn { flex: 1 1 auto; }
  .hero picture { min-height: 12rem; }
  .swe-chat.open {
    inset: 0;
    width: auto;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    right: 0;
    bottom: 0;
  }
  .swe-chat__photo { height: 5.5rem; }
  .swe-chat__photo img { height: 5.5rem; }
}
@media (min-width: 960px) {
  .anag-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); }
  .anag-side { position: sticky; top: 5.2rem; }
}
@media (min-width: 1400px) {
  .wrap { width: min(1180px, calc(100% - 3rem)); }
}
body.landing { background: #fff; color: #0f172a; }
body.landing::before { display: none; }
body.landing header.top { background: #0f172a; }
body.landing .btn-primary, body.landing .swe-cta--buy { background: #f59e0b; color: #0f172a; }
body.landing .swe-cta--ghost { background: #059669; color: #fff; }
body.landing .card, body.landing .review { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
body.landing h1, body.landing h2, body.landing .lead { color: #0f172a; }
.deal {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0.9rem 0 0.4rem;
}
.deal-was, .deal-is {
  flex: 1 1 11rem;
  border-radius: 1.15rem;
  padding: 0.95rem 1rem 1rem;
}
.deal-was {
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}
.deal-was span, .deal-is em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
}
.deal-was strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
}
.deal-is {
  position: relative;
  background: linear-gradient(165deg, #fff7ed 0%, #fff 55%);
  border: 3px solid #f59e0b;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}
.deal-is strong {
  display: block;
  margin-top: 0.35rem;
  color: #b45309;
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: 0.92;
}
.deal-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.deal-save {
  flex: 1 1 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  text-align: center;
}
.deal--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0.85rem 0 0.15rem;
}
.deal--compact .deal-old {
  color: #94a3b8;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
}
.deal--compact .deal-now {
  color: #b45309;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}
.deal--compact .deal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-weight: 800;
}
.why, .reviews-wrap { margin: 0.4rem 0 1rem; }
.why h2, .reviews-wrap > h2 { margin: 0 0 0.7rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.why-text p:first-child { margin-top: 0.8rem; }
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  position: relative;
}
.cart-link svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-card h1 { margin-top: 0; }
.cart-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.cart-line h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.cart-line__sum { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 8rem; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8rem 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.pay-list { border: 0; margin: 0.6rem 0; padding: 0; }
.pay-list legend { font-weight: 800; margin-bottom: 0.4rem; }
.pay-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.75rem;
  border: 2px solid #f59e0b;
  border-radius: 1rem;
  background: #fff7ed;
}
.pay-option input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; flex: 0 0 1.35rem; }
.pay-option small { display: block; font-weight: 600; color: #3d4d63; }
[hidden] { display: none !important; }
.swe-cta--discuss {
  background: #fff;
  color: #0445af;
  -webkit-text-fill-color: #0445af;
  border: 1.5px solid #0445af;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.nav .swe-cta--discuss { width: auto; }
.swe-actions .swe-cta--discuss { width: 100%; }
body.landing .swe-cta--discuss,
.swe-cta--discuss:hover,
.swe-cta--discuss:focus-visible {
  background: #fff;
  color: #0445af;
  -webkit-text-fill-color: #0445af;
  filter: none;
}
.swe-cta--discuss:hover,
.swe-cta--discuss:focus-visible {
  background: #eef4ff;
  color: #033a94;
  -webkit-text-fill-color: #033a94;
}
.btn-plus {
  width: 100%;
  min-height: 56px;
  margin-top: 0.8rem;
  background: #f59e0b;
  color: #0f172a;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}
.btn-plus--small { font-size: 1.05rem; min-height: 48px; }
.gruppo-box, .fase-box, .sotto-box {
  border: 1.5px solid #d7e3f4;
  border-radius: 1rem;
  padding: 0.85rem;
  margin-top: 0.9rem;
  background: #f8fbff;
}
.voce-head, .foto-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.voce-head { justify-content: space-between; }
.foto-azioni .btn { flex: 1 1 12rem; }
.voce input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.foto-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.foto-thumbs figure {
  margin: 0;
  width: 7.5rem;
}
.foto-thumbs img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #0f172a;
}
.foto-thumbs .btn { width: 100%; min-height: 44px; padding: 0.4rem; font-size: 0.95rem; }
.foto-live video { width: 100%; max-height: 16rem; background: #0f172a; border-radius: 0.8rem; }
