/* =========================================================
   DOMINI PREMIUM — Apple-inspired modern UI
   ========================================================= */

/* --- Design Tokens --- */
:root {
  /* Surfaces (Apple light palette) */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --paper: #ffffff;

  /* Text */
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-soft: rgba(0, 0, 0, 0.05);

  /* Accents (Apple system colors) */
  --accent: #0071e3;
  --accent-deep: #0058b9;
  --accent-2: #5e5ce6;
  --success: #34c759;
  --sold: #86868b;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Reset --- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Layout helpers --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  display: inline-block;
  margin: 0 0 0.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* "italic" / "accent" overrides — usati come highlight, non corsivo */
.italic, .accent {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

p { margin: 0 0 1rem; max-width: 62ch; }
.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.45;
  font-weight: 400;
}

/* =========================================================
   HEADER  /  NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand .dot {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: inline-block;
}
.brand small {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.25rem;
  font-weight: 400;
}
.brand span {
  font-weight: 600;
  color: var(--ink);
}

.nav-list {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-list a:hover { color: var(--accent); }

.nav-cta {
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  padding: 0.3rem;
}

@media (max-width: 880px) {
  .nav-list, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-list.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--rule);
    gap: 1.2rem;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  position: relative;
  background: var(--bg);
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}
.hero h1 {
  margin: 1rem 0 1.6rem;
}
.hero-meta {
  border-top: 1px solid var(--rule);
  padding-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hero-meta .stat {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.hero-meta .stat strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.035em;
  margin-bottom: 0.15rem;
  line-height: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(0,113,227,0.18);
}
.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,113,227,0.28);
}
.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--bg-soft);
  border-color: rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.btn svg { width: 14px; height: 14px; }

/* "01" decorativo nel hero — disattivato, troppo classico */
.hero-number {
  display: none !important;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

/* Alternanza di sfondi soft per separare le sezioni (Apple-style) */
section:nth-of-type(even) {
  background: var(--bg-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 3rem;
  align-items: end;
  text-align: left;
}
.section-head .label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  border-top: none;
  padding-top: 0;
  min-width: auto;
  margin-bottom: 0.4rem;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: none;
}
@media (min-width: 760px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
.service {
  padding: 2.25rem 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.12);
}
.service .num {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.service h3 {
  font-style: normal;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.service p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
  max-width: none;
}

/* =========================================================
   DOMINIO CONDIVISO
   ========================================================= */
.shared-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 880px) {
  .shared-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.shared-intro .lead { margin-bottom: 1.25rem; }
.shared-intro p { margin-bottom: 1.5rem; line-height: 1.6; }
.shared-intro code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
  color: #0058b9;
  font-weight: 500;
}
.shared-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.shared-card .eyebrow { margin-bottom: 0.75rem; }
.shared-domain {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.shared-domain .tld { color: var(--muted); font-weight: 500; }
.shared-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.shared-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.shared-list li:last-child { border-bottom: none; }
.shared-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.shared-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 99px;
}
.shared-tag.taken {
  background: #ffe9e9;
  color: #c62828;
}
.shared-tag.free {
  background: #e8f7ee;
  color: #1a8d3f;
}
.shared-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.shared-pricing > div { text-align: center; }
.shared-pricing .shared-price-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.shared-pricing .shared-price-unit {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.shared-pricing .shared-price-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Badge per il listing portfolio (domini condivisi) - inline nel domain-head */
.domain-badge-shared {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
  white-space: nowrap;
}
.domain.is-shared .domain-head .lot {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.domain { position: relative; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
.about-points {
  list-style: none;
  margin: 0; padding: 0;
}
.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.about-points li:last-child { border-bottom: none; }
.about-points .pt-num {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  min-width: 1.5rem;
}
.about-points .pt-text {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* =========================================================
   DOMAIN CARDS
   ========================================================= */
.domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: none;
}
@media (min-width: 720px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .domain-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.domain {
  padding: 1.75rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}
.domain-cover {
  display: block;
  margin: -1.75rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
.domain-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.domain:hover .domain-cover img {
  transform: scale(1.04);
}
.domain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.14);
}

.domain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.domain-head .lot { color: var(--accent); font-weight: 600; }

.domain-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  word-break: break-word;
  color: var(--ink);
}
.domain-name .tld {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 600;
}

.domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.domain-meta .score {
  color: var(--accent);
  font-weight: 600;
}
.domain-meta .cat {
  background: var(--bg-soft);
  padding: 0.22rem 0.6rem;
  border: none;
  border-radius: var(--radius-pill);
  text-transform: none;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.domain-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}
.domain-price {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.domain-price .cur {
  font-size: 0.95rem;
  color: var(--muted);
  margin-right: 0.15rem;
  font-weight: 500;
  font-style: normal;
}
.domain-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  border-bottom: none;
  padding-bottom: 0;
  transition: color .2s ease, transform .2s ease;
}
.domain-link::after {
  content: " →";
  display: inline-block;
  transition: transform .2s ease;
}
.domain-link:hover { color: var(--accent-deep); }
.domain-link:hover::after { transform: translateX(3px); }

.domain.sold { opacity: 0.55; }
/* badge VENDUTO ora inline nel domain-head (no piu' ::before absolute) */
.domain-badge-sold {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sold);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.domain.sold .domain-price,
.domain.sold .domain-name { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Filter bar (listing page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
  align-items: center;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--ink-soft);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: all .2s;
}
.filter-btn:hover {
  background: #ebebef;
  color: var(--ink);
}
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-search {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  padding: 0.6rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  border-radius: var(--radius-pill);
  transition: border-color .2s, box-shadow .2s;
}
.filter-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}
.filter-search::placeholder { color: var(--muted); }

/* Empty state */
.empty {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
section.cta-banner,
.cta-banner {
  background: linear-gradient(135deg, #1d1d1f 0%, #000 100%) !important;
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.25) 0%, transparent 70%);
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  filter: blur(40px);
}
.cta-banner h2 { color: #fff; }
.cta-banner h2 .italic {
  background: linear-gradient(135deg, #2997ff 0%, #5e5ce6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.cta-banner .lead { color: rgba(255,255,255,0.72); }
.cta-banner .eyebrow { color: #2997ff; }
.cta-banner .btn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: none;
}
.cta-banner .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,113,227,0.4);
}
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  position: relative;
  z-index: 2;
}
@media (min-width: 800px) {
  .cta-banner-grid { grid-template-columns: 2fr 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 1rem; font-style: normal; }
.contact-email {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  border-bottom: none;
  padding-bottom: 0;
  margin: 1rem 0;
  transition: opacity .2s;
}
.contact-email:hover { opacity: 0.75; }

.contact-features {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 1.25rem;
}
.contact-features li {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  transition: transform .2s, box-shadow .2s;
}
.contact-features li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-features .feat-num {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}
.contact-features .feat-title {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.contact-features .feat-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-soft);
  padding: 4rem 0 2rem;
  position: relative;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-grid li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-grid a:hover { color: var(--accent); }

.footer-tagline {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32ch;
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
}

/* =========================================================
   DOMAIN DETAIL PAGE
   ========================================================= */
.detail-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--rule); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 880px) {
  .detail-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
}
.detail-name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 1rem 0;
  word-break: break-word;
  line-height: 1.05;
}
.detail-name .tld {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.detail-desc { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.5; }

.detail-side {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius-pill);
  background: rgba(52, 199, 89, 0.12);
  color: #1f8a3a;
}
.status-badge .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}
.status-badge.sold {
  background: rgba(134, 134, 139, 0.16);
  color: #5a5a5f;
}
.status-badge.sold .status-dot {
  background: var(--sold);
  box-shadow: 0 0 0 3px rgba(134, 134, 139, 0.2);
}
.detail-side .row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
}
.detail-side .row:last-of-type { border-bottom: none; }
.detail-side .row .k { color: var(--muted); text-transform: none; font-size: 0.85rem; letter-spacing: 0; font-weight: 400; }
.detail-side .row .v { color: var(--ink); font-weight: 600; }
.detail-price {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 1rem;
  display: block;
  line-height: 1;
}
.detail-price .cur { font-size: 1.2rem; color: var(--muted); font-style: normal; margin-right: 0.2rem; font-weight: 500; }

.detail-cta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.detail-cta .btn { width: 100%; }
.detail-cta .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 1.25rem;
  background: #0071e3;
  color: #fff;
  border: 0;
}
.detail-cta .btn-buy:hover { background: #0062c4; }
.detail-cta .buy-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.detail-content {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.detail-content h3 {
  font-style: normal;
  margin-bottom: 1.2rem;
}
.detail-content ul {
  list-style: none;
  padding: 0; margin: 0;
}
.detail-content li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 1rem;
  color: var(--ink-soft);
}
.detail-content li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection */
::selection {
  background: rgba(0,113,227,0.18);
  color: var(--ink);
}

/* Focus visible (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   PAGINA DOMINIO CONDIVISO
   ========================================================= */

/* Casi d'uso */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 880px) {
  .usecase-grid { grid-template-columns: repeat(3, 1fr); }
}
.usecase {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.usecase:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.usecase h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.usecase p { margin: 0 0 1rem; line-height: 1.6; }
.usecase code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
  padding: 1px 5px;
  color: #0058b9;
}
.usecase-example {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.8;
}
.usecase-example code { background: transparent; padding: 0; color: var(--ink); font-weight: 500; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.5rem;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,113,227,0.1), rgba(94,92,230,0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink); }
.feature p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: var(--muted); }
.feature p code { font-size: 0.92em; background: rgba(0,0,0,0.04); border-radius: 4px; padding: 1px 4px; color: var(--ink); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 720px;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.pricing-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 1rem 0 0.25rem;
}
.pricing-currency { font-size: 1.5rem; color: var(--muted); font-weight: 500; }
.pricing-num { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.pricing-period { font-size: 1rem; color: var(--muted); }
.pricing-iva { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.5rem; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.pricing-features li {
  padding: 0.6rem 0 0.6rem 26px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--rule);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: rgba(26, 141, 63, 0.1);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231a8d3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3 3 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.pricing-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 760px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.faq-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
  color: #0058b9;
}

/* Active link nav */
.nav-list a.active { color: var(--accent); font-weight: 500; }

/* =========================================================
   PAGINA DOMINIO CONDIVISO — form prenotazione
   ========================================================= */
.shared-filter-banner {
  background: linear-gradient(135deg, rgba(0,113,227,0.08), rgba(94,92,230,0.08));
  border: 1px solid rgba(0,113,227,0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.shared-filter-banner small { display: block; color: var(--muted); margin-top: 2px; }

.domain-price-shared { font-size: 1.05rem; }
.domain-price-shared small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.shared-form { margin-top: 2rem; }
.shared-form-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink); }
.shared-form-help { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.75rem; line-height: 1.5; }
.shared-form-help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0,113,227,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  color: #0058b9;
}
.shared-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.shared-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.shared-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.shared-input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.btn.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; box-shadow: none; }
.btn.btn-sm:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.btn-sm:disabled:hover { background: var(--accent); transform: none; }

.shared-input-feedback {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
}
.shared-input-feedback.ok  { color: #1a8d3f; font-weight: 500; }
.shared-input-feedback.err { color: #c62828; }
.shared-input-feedback.warn { color: #e08a00; }

.shared-taken {
  margin-top: 2rem;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.shared-taken summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.shared-taken-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 600px) { .shared-taken-grid { grid-template-columns: 1fr; } }
.shared-taken-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.shared-taken-grid ul { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.shared-taken-grid ul li {
  padding: 4px 0;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.shared-taken-grid ul li.empty { color: var(--muted); font-style: italic; font-family: var(--sans); }

/* Sidebar destra del dettaglio shared */
.detail-side-shared { padding-bottom: 1.5rem; }
.shared-pricelist {
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.shared-pricelist > div {
  text-align: center;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
}
.shared-pl-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.shared-pricelist strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.shared-pricelist strong small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.cart-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.cart-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
}
.cart-list li.cart-empty {
  color: var(--muted);
  font-style: italic;
  justify-content: center;
  padding: 1rem 0;
}
.cart-list li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  display: block;
  word-break: break-all;
}
.cart-list li small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.cart-remove {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.cart-remove:hover { color: #c62828; border-color: #c62828; }

.cart-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.cart-total > div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
}
.cart-total .cart-grand {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
  font-size: 1.05rem;
  color: var(--ink);
}
.cart-total .cart-grand strong { color: var(--accent); }

.cart-checkout {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-checkout label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.cart-checkout input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--sans);
}
.cart-checkout input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.cart-checkout .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.cart-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  cursor: pointer;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--ink) !important;
}
.cart-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.cart-business-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.cart-business-fields[hidden] { display: none; }
.cart-business-fields label small {
  display: inline;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

/* =========================================================
   NUMERO VERDE / CONTATTI / FOOTER PHONE / NEXT STEPS BOX
   ========================================================= */

/* Numero verde nella sezione contatti home (grande, gradient) */
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1a8d3f 0%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  margin-top: 0.5rem;
}
.contact-phone svg {
  flex-shrink: 0;
  -webkit-text-fill-color: #1a8d3f;
  color: #1a8d3f;
}
.contact-phone:hover { opacity: 0.85; }

/* Numero verde nel footer compatto */
.footer-phone {
  color: #1a8d3f !important;
  font-weight: 500;
}
.footer-phone strong {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Box "Cosa succede ora" con cerchietti blu numerati */
.next-steps-box {
  background: linear-gradient(135deg, rgba(0,113,227,0.04), rgba(94,92,230,0.04));
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: 18px;
  padding: 2rem;
  text-align: left;
  margin: 2rem 0;
}
.next-steps-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.next-steps .step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,113,227,0.25);
  margin-top: 0.1rem;
}
.next-steps .step-text { flex: 1 1 auto; min-width: 0; }
.next-steps strong { color: var(--ink); font-weight: 600; }

/* Link generico secondario nei footer */
.link-secondary {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.link-secondary:hover { color: var(--ink); }

/* Pagina Credits — dati legali */
.legal-grid {
  max-width: 720px;
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.legal-row:last-child { border-bottom: none; }
.legal-row .legal-k { color: var(--muted); font-weight: 500; }
.legal-row .legal-v { color: var(--ink); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; }
.legal-row .legal-v a { color: var(--accent); }

/* =========================================================
   COOKIE BANNER (in basso) + MODALE PERSONALIZZAZIONE (overlay)
   ========================================================= */

/* ---- Banner principale (modale: overlay blocca navigazione) ---- */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1rem;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: cookieFadeIn .3s ease;
  cursor: pointer;
}
.cookie-banner-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.12);
  max-width: 720px;
  width: 100%;
  animation: cookieSlideUp .35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cookie-banner-card.cookie-banner-flash {
  animation: cookieFlash .5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cookieFlash {
  0%, 100% { transform: translateX(0); box-shadow: 0 20px 60px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.12); }
  20%      { transform: translateX(-8px); box-shadow: 0 20px 60px rgba(0,113,227,0.40), 0 0 0 3px rgba(0,113,227,0.20); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.cookie-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.cookie-banner-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: none;
}
.cookie-banner-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-text a:hover { color: var(--accent-deep); }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

/* ---- Modale Personalizza (overlay centrato) ---- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal[hidden] { display: none !important; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookieFadeIn .25s ease;
}
.cookie-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  animation: cookieZoomIn .3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes cookieFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes cookieZoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}
.cookie-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.cookie-modal-close {
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
}
.cookie-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.cookie-modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
}
.cookie-modal-intro {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: none;
}

.cookie-options {
  display: grid;
  gap: .75rem;
}
.cookie-opt {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.45;
  padding: .85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.cookie-opt:has(input:not([disabled])):hover {
  border-color: var(--rule);
  background: #fff;
}
.cookie-opt input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.cookie-opt input[disabled] { opacity: .5; cursor: not-allowed; }
.cookie-opt strong { display: block; color: var(--ink); font-weight: 600; }
.cookie-opt span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }

.cookie-modal-footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 0 22px 22px;
}

/* ---- Bottoni (riusati banner + modale) ---- */
.cookie-btn {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cookie-btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,0.18);
}
.cookie-btn-secondary:hover { background: var(--bg-soft); }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .cookie-banner { inset: auto 0 0 0; }
  .cookie-banner-card { border-radius: 18px 18px 0 0; padding: 1.25rem; }
  .cookie-banner-actions { flex-direction: column-reverse; }
  .cookie-banner-actions .cookie-btn { width: 100%; }
  .cookie-modal { padding: 0; align-items: flex-end; }
  .cookie-modal-dialog { border-radius: 22px 22px 0 0; max-height: 90vh; }
  .cookie-modal-footer { flex-direction: column-reverse; }
  .cookie-modal-footer .cookie-btn { width: 100%; }
}

/* =========================================================
   PAGINE LEGALI (privacy, cookie-policy)
   ========================================================= */
.legal-page {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  max-width: 880px;
}
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: .5rem 0 1rem; }
.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.legal-page p, .legal-page li { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); max-width: 70ch; }
.legal-page ul { padding-left: 1.25rem; }
.legal-page ul li { margin-bottom: .35rem; }
.legal-page a { color: var(--accent); text-underline-offset: 2px; text-decoration: underline; }
.legal-page a:hover { color: var(--accent-deep); }
.legal-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 1.25rem;
  font-size: .88rem;
}
.legal-table th, .legal-table td {
  padding: .65rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}
.legal-table tbody tr:hover td { background: rgba(0,113,227,0.03); }

.badge-legal {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--muted);
  margin-left: .5rem;
  vertical-align: middle;
}

/* Link "Dimentica i miei dati" + toast notifica */
.cookie-forget {
  margin: 1.25rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.cookie-forget a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-forget a:hover { color: var(--accent-deep); }

.cookie-toast {
  position: fixed;
  z-index: 10000;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1d1d1f;
  color: #fff;
  padding: .85rem 1.5rem;
  border-radius: 980px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  text-align: center;
  animation: toastIn .25s ease;
}
.cookie-toast.out { animation: toastOut .6s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 20px); } }
