:root {
  --bg: #1C1C1E;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: #F2F1ED;
  --muted: rgba(255,255,255,.72);
  --faint: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.12);
  --gold: #D6C29A;
  --gold-dark: #C7B184;
  --white-soft: #E8E8E8;
  --accent2: #9fb7ff;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(1200px 700px at 25% 10%, rgba(159,183,255,.12), transparent 55%),
    radial-gradient(900px 600px at 70% 20%, rgba(215,199,166,.14), transparent 55%),
    radial-gradient(1000px 700px at 50% 100%, rgba(255,255,255,.06), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =========================
   LAYOUT
   ========================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.page-content {
  flex: 1 0 auto;
  width: 100%;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: 1.1fr .9fr;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

section {
  padding: 10px 0;
  scroll-margin-top: 110px;
}

.hero {
  padding: 54px 0 64px;
}
/* =========================
   TOPBAR
   ========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(28,28,30,.92), rgba(28,28,30,.78));
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding-top: env(safe-area-inset-top, 0px);
}

/* Senza blur (browser che non lo supportano) la barra deve restare piena */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: #1C1C1E; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.mark {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: url("/assets/img/logo.png") center/contain no-repeat;
  background-color: transparent;
  box-shadow: none;
  filter: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  color: rgba(232,232,232,.98);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 16px;
  margin: 0;
}

.brand-payoff {
  margin-top: 6px;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  opacity: .95;
}

/* =========================
   NAVIGATION CON HAMBURGER (SEMPRE)
   ========================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 14px;
  position: relative;
}

/* DESTRA: CTA + Hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* HAMBURGER BUTTON (sempre visibile) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animazione X quando aperto */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MENU A DISCESA (sempre dropdown) */
/* Sfondo pieno su TUTTI i dispositivi: il menu non deve mai lasciar
   trasparire il contenuto della pagina sottostante. */
.menu-dropdown {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #212124;
  background: color-mix(in srgb, #1C1C1E 96%, #ffffff);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 8px;
  margin-top: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  max-width: calc(100vw - 24px);
  /* Il menu ha 13 voci: su schermi bassi deve poter scorrere */
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
}

@supports not (max-height: 100dvh) {
  .menu-dropdown { max-height: calc(100vh - 130px); }
}

.menu-dropdown.active {
  display: flex;
}

.menu-dropdown a {
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 12px;
  transition: color .2s ease, background .2s ease;
  font-size: 14px;
  /* target touch: mai sotto i 44px */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.menu-dropdown a.menu-gold {
  color: var(--gold);
  font-weight: 600;
}

/* separatore tra le voci "oro" e la navigazione di pagina */
.menu-dropdown a.menu-gold + a:not(.menu-gold) {
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}


/* RESPONSIVE: Mobile - Nascondi CTA e adatta menu */
@media (max-width: 900px) {
  .nav-right .btn.primary {
    display: none; /* Nasconde "Conversazione riservata" nella topbar */
  }

  .menu-dropdown {
    right: 5px;
    min-width: 240px;
  }
}

@media (max-width: 560px) {
  .nav-right .btn {
    font-size: 12px;
    padding: 9px 12px;
  }

  .menu-dropdown {
    right: 5px;
    min-width: 0;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 104px);
  }

  .menu-dropdown a {
    padding: 11px 14px;
    font-size: 14px;
  }
}


/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.09);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  /* target touch minimo su mobile */
  min-height: 44px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.30);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(215,199,166,.95), rgba(215,199,166,.70));
  color: #141414;
  border-color: rgba(215,199,166,.55);
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(215,199,166,1), rgba(215,199,166,.78));
}

.btn.ghost {
  background: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 3px rgba(159,183,255,.12);
}

/* =========================
   CARDS
   ========================= */

.card {
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-inner {
  padding: 26px;
}

.soft {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.section-box {
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1{
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: .2px;
  margin: 0 0 12px;
}

h2{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.kicker {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 10px;
}

ul {
  margin: 10px 0 0 18px;
  color: var(--muted);
}

li {
  margin: 8px 0;
}

/* =========================
   IMAGES
   ========================= */

.hero .grid.two{
  align-items: stretch;
}

.hero .grid.two > .reveal:last-child{
  display: flex;
  justify-content: flex-end;
}

.hero-figure {
  width: 100%;
  max-width: 300px;
  height: 100%;
  min-height: 100%;
  margin-left: auto;

  background:
    linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.20)),
    url("../img/heroV2.jpg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;

  border-radius: var(--radius2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero .grid.two{
    align-items: center;
  }

  .hero .grid.two > .reveal:last-child{
    display: block;
  }

  .hero-figure {
    width: 72%;
    max-width: 260px;
    height: auto;
    min-height: 0;
    aspect-ratio: 498 / 1024;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-figure {
    width: 78%;
    max-width: 220px;
  }
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(600px 420px at 20% 20%, rgba(215,199,166,.20), transparent 60%);
  pointer-events: none;
}

.hero-figure .caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,14,.55);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  max-width: 78%;
}

.portrait {
  height: 100%;
  min-height: 480px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35)), url('../img/portraitV2.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.portrait::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(600px 420px at 20% 20%, rgba(215,199,166,.20), transparent 60%);
  pointer-events: none;
}

/* =========================
   FEATURES
   ========================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,.03);
}

.feature b {
  color: var(--text);
  font-weight: 600;
}

.feature p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--faint);
}

/* =========================
   QUOTE
   ========================= */

.quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: rgba(255,255,255,.86);
  line-height: 1.2;
}

.quote small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--faint);
  margin-top: 10px;
}

/* =========================
   FORMS
   ========================= */

form label {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin: 10px 0 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline: none;
  font-size: 16px;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(215,199,166,.65);
  box-shadow: 0 0 0 4px rgba(215,199,166,.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select option {
  background-color: #2C2C2E;
  color: #F2F1ED;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================
   TESTIMONIANZE
   ========================= */

#testimonianze blockquote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 16px;
  position: relative;
}

#testimonianze blockquote::before {
  content: '"';
  font-size: 48px;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  left: -12px;
  top: -8px;
}

#testimonianze cite {
  display: block;
  text-align: right;
  color: var(--faint);
  font-size: 13px;
  font-style: normal;
}

/* =========================
   FAQ
   ========================= */

.faq-container {
  max-width: 800px;
  margin: 32px auto 0;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: var(--panel2);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.faq-item[open] {
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  border-color: rgba(215,199,166,0.25);
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.5;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.3s ease;
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  padding-right: 20px;
}

/* =========================
   SOCIAL ICONS
   ========================= */

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--panel2);
  border-color: rgba(215,199,166,0.5);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================
   SEZIONE CONTATTO
   ========================= */

/* Griglia: una colonna + spazio ridotto */
#contatto .grid.two {
  gap: 10px;
  grid-template-columns: 1fr;
}

/* Testo introduttivo: niente limiti di larghezza */
#contatto p.lead {
  max-width: none;
  width: 100%;
}

/* Card nella griglia: centrata con larghezza controllata */
#contatto .grid.two > .card{
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Card con flexbox per altezza uniforme */
#contatto .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* Form con flexbox per spingere bottone in fondo */
#contatto form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Bottone spinto in fondo e allineato */
#contatto form button[type="submit"] {
  width: 100%;
  margin-top: auto;
}
/* =========================
   FOOTER
   ========================= */

footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 20px 0;  /* Altezza footer ridotta */
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  margin-top: auto; /* Spazio tra ultima sezione e footer */
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .social-links {
  display: flex;
  gap: 12px;
  margin: 0;
  align-items: center;
}

footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  footer {
    padding: 16px 0;
  }
  
  footer {
    margin-top: 60px; /* Meno spazio su mobile */
  }
}


/* =========================
   REVEAL ANIMATION
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .grid.two,
  .grid.three,
  #contatto .grid.two {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  section {
    padding: 16px 0;
  }

  .section-box {
    padding: 32px;
    margin-top: 24px;
  }

  .faq-container {
    margin-top: 24px;
  }

  .faq-item {
    padding: 18px;
  }

  .faq-item summary {
    font-size: 14px;
  }

  .faq-item p {
    font-size: 13px;
  }

  #testimonianze blockquote {
    font-size: 16px;
  }

  .portrait {
    min-height: 320px;
  }
}

/* Tablet verticale: evita taglio testa nella prima hero */
@media (min-width: 701px) and (max-width: 900px) and (orientation: portrait) {
  .hero-figure {
    background-position: 50% 20%;
  }
}


@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 84px;
  }

  section {
    padding: 12px 0;
    scroll-margin-top: 84px;
  }

  .nav {
    padding: 8px 0;
  }

  .mark {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: .12em;
  }

  .brand-payoff {
    display: none;
  }

  /* CTA hero full-width su mobile */
  .hero .btn {
    width: 100%;
  }

  .section-box {
    padding: 24px;
    margin-top: 20px;
  }

  .faq-container {
    margin-top: 20px;
  }

  .faq-item {
    padding: 16px;
    margin-bottom: 12px;
  }

  .faq-item summary {
    font-size: 13px;
    padding-right: 28px;
  }

  .faq-item summary::after {
    font-size: 20px;
  }

  .faq-item p {
    font-size: 12px;
    margin-top: 12px;
  }

  #testimonianze blockquote {
    font-size: 15px;
  }

  #testimonianze cite {
    font-size: 12px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links a svg {
    width: 18px;
    height: 18px;
  }

  .portrait {
    min-height: 260px;
  }

  .menu-dropdown {
    max-width: calc(100vw - 20px);
  }
}


/* =========================
   EXTRA SMALL (iPhone SE, ≤ 400px)
   ========================= */

@media (max-width: 400px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .card-inner {
    padding: 18px;
  }

  .section-box {
    padding: 18px;
    margin-top: 16px;
  }
}

/* Lista più “stretta” */
ul.list-tight{
  margin: 8px 0;      /* spazio sopra/sotto la lista */
  padding-left: 18px; /* rientro puntini */
}

ul.list-tight li{
  margin: 4px 0;      /* spazio tra i punti */
  line-height: 1.25;  /* altezza riga più compatta */
}


/* =========================
   TOUCH TARGETS
   ========================= */

#slotButtons .btn {
  min-height: 44px;
  min-width: 64px;
}

#contatto form label:has(input[type="checkbox"]) {
  min-height: 44px;
  align-items: center;
}

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   OTTIMIZZAZIONI MOBILE
   ========================= */

/* Evita che iOS ingrandisca il testo in orizzontale */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Nessun elemento deve poter sfondare la larghezza dello schermo */
img, svg, iframe, video, table, pre {
  max-width: 100%;
}

/* Parole lunghe (email, URL) mandate a capo invece che in overflow */
p, li, blockquote, h1, h2, h3, summary, cite {
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  /* Su tablet/telefono le CTA in fila diventano a piena larghezza:
     niente bottoni tagliati o di larghezze diverse. */
  .hero .btn,
  section .btn.primary {
    width: 100%;
  }

  /* eccezione: gli slot orari del calendario restano affiancati */
  #slotButtons .btn {
    width: auto;
  }

  .lead {
    max-width: none;
  }

  /* I campi form a 16px evitano lo zoom automatico di iOS al focus */
  input, select, textarea {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero {
    padding: 28px 0 36px;
  }

  .card-inner {
    padding: 20px;
  }

  .soft {
    padding: 16px;
  }

  /* Nelle liste il rientro mangia spazio prezioso */
  ul.list-tight {
    padding-left: 16px;
  }

  .kicker {
    font-size: 12px;
  }
}

/* =========================
   DOMINIA
   ========================= */

.dominiapage-frame{
  width: 100%;
  height: 980px;
  border: 0;
  border-radius: var(--radius2);
  background: transparent;
  overflow: hidden;
  display:block;
}

@media (max-width: 900px){
  .dominiapage-frame{
    height: 1120px;
  }
}

/* =========================================================
   METODO IMPERIUM - ELEMENTI GRAFICI (v6)
   Cinque livelli, Ruota dei Pattern, blocchi risposta
   ========================================================= */

/* --- Respiro / spazio bianco --- */
.section-lede{
  max-width: 62ch;
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--muted);
}

.section-head{
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 32px;
}

.section-head .section-lede{
  margin-left: auto;
  margin-right: auto;
}

.cta-row{
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.cta-row .btn{
  min-width: 260px;
}

/* --- Badge premium --- */
.badge-premium{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(215,199,166,.45);
  background: rgba(215,199,166,.10);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* =========================
   I CINQUE LIVELLI
   ========================= */

.levels{
  display: grid;
  gap: 14px;
  margin-top: 8px;
  counter-reset: lvl;
}

.level{
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  position: relative;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.level:hover{
  border-color: rgba(215,199,166,.34);
  background: rgba(255,255,255,.055);
  transform: translateY(-2px);
}

/* filo conduttore verticale tra i livelli */
.level::after{
  content: "";
  position: absolute;
  left: 51px;
  top: 82px;
  bottom: -14px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(215,199,166,.42), rgba(215,199,166,.06));
}

.level:last-child::after{ display: none; }

.level-mark{
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(215,199,166,.42);
  background: radial-gradient(circle at 30% 25%, rgba(215,199,166,.20), rgba(215,199,166,.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 62px;
  position: relative;
  z-index: 1;
}

.level-mark svg{
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.level-mark .level-num{
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 600;
}

.level-body h3{
  margin: 2px 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.level-body p{
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.level-fn{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.level-fn::before{
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(215,199,166,.6);
}

@media (max-width: 560px){
  .level{
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .level-mark{ width: 48px; height: 48px; flex-basis: 48px; }
  .level-mark svg{ width: 18px; height: 18px; }
  .level::after{ left: 39px; top: 66px; }
  .level-body h3{ font-size: 18px; }
  .level-body p{ font-size: 14px; }
}

/* =========================
   RUOTA DEI PATTERN
   ========================= */

.wheel-wrap{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}

.wheel-figure{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.wheel-figure svg{
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.wheel-ring{
  fill: none;
  stroke: rgba(215,199,166,.16);
  stroke-width: 1;
}

.wheel-arc{
  fill: none;
  stroke: rgba(215,199,166,.55);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wheel-node{
  fill: rgba(28,28,30,.96);
  stroke: rgba(215,199,166,.55);
  stroke-width: 1.2;
}

.wheel-num{
  fill: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  text-anchor: middle;
  dominant-baseline: central;
}

.wheel-label{
  fill: #F2F1ED;
  font-family: Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
}

.wheel-core{
  fill: rgba(255,255,255,.035);
  stroke: rgba(255,255,255,.12);
  stroke-width: 1;
}

.wheel-core-title{
  fill: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  text-anchor: middle;
  letter-spacing: .03em;
}

.wheel-core-sub{
  fill: rgba(255,255,255,.55);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  text-anchor: middle;
}

/* tabella rovesciamento */
.flip-list{
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.flip-list li{
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 14px;
}

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

.flip-from{ color: var(--faint); }
.flip-to{ color: var(--text); font-weight: 600; }

.flip-arrow{
  color: var(--gold);
  text-align: center;
  font-size: 15px;
}

@media (max-width: 900px){
  .wheel-wrap{ grid-template-columns: 1fr; gap: 24px; }
}

/* Sotto i 560px l'SVG viene scalato a ~0,6x: il testo interno va ingrandito
   in unita' utente per restare leggibile (>=12px reali) sullo schermo. */
@media (max-width: 560px){
  .wheel-label{ font-size: 26px; }
  .wheel-num{ font-size: 30px; }
  .wheel-core-title{ font-size: 18px; }
  .wheel-core-sub{ font-size: 14px; }
  .flip-list li{ font-size: 13.5px; grid-template-columns: 1fr 20px 1fr; gap: 8px; }
}

/* =========================
   PERCHE' IMPERIUM (posizionamento)
   ========================= */

.stance{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}

.stance-col{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255,255,255,.03);
}

.stance-col.is-yes{
  border-color: rgba(215,199,166,.30);
  background: rgba(215,199,166,.05);
}

.stance-col h3{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.stance-col.is-yes h3{ color: var(--gold); }

.stance-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.stance-col li{
  position: relative;
  padding-left: 26px;
  margin: 11px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.stance-col li::before{
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  line-height: 1.45;
}

.stance-col.is-no li::before{
  content: "×";
  color: rgba(255,255,255,.34);
}

.stance-col.is-yes li::before{
  content: "→";
  color: var(--gold);
}

@media (max-width: 900px){
  .stance{ grid-template-columns: 1fr; }
}

/* =========================
   BLOCCHI RISPOSTA (SEO / AI search)
   ========================= */

.answers{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.answer-block{
  border: 1px solid var(--line);
  border-left: 2px solid rgba(215,199,166,.5);
  border-radius: 14px;
  padding: 20px 22px;
  background: rgba(255,255,255,.028);
}

.answer-block h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.answer-block p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px){
  .answers{ grid-template-columns: 1fr; }
}

/* =========================
   COACHING - SERVIZIO PREMIUM
   ========================= */

.premium-box{
  border: 1px solid rgba(215,199,166,.34);
  border-radius: var(--radius2);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(215,199,166,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 40px;
}

.value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.value-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
}

.value-item b{
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 5px;
}

.value-item span{
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
  display: block;
}

@media (max-width: 900px){
  .value-grid{ grid-template-columns: 1fr 1fr; }
  .premium-box{ padding: 30px; }
}

@media (max-width: 560px){
  .value-grid{ grid-template-columns: 1fr; }
  .premium-box{ padding: 22px; }
  .cta-row .btn{ min-width: 0; width: 100%; }
}

/* =========================
   STEP FUNNEL (dossier / libro / coaching)
   ========================= */

.step-note{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.55;
}

.step-note b{ color: var(--text); }

/* --- CTA finale nel menu a discesa --- */
.menu-dropdown .menu-cta{
  margin-top: 10px;
  padding-top: 12px;
  justify-content: center;
  color: #141414;
  font-weight: 600;
  border-top: 0;
}
.menu-dropdown .menu-cta:hover,
.menu-dropdown .menu-cta:focus-visible{
  color: #141414;
  background: linear-gradient(135deg, rgba(215,199,166,1), rgba(215,199,166,.78));
}
.menu-dropdown .menu-sep{
  height: 1px;
  background: var(--line);
  margin: 8px 6px 2px;
}

/* Logo/brand cliccabile verso la home */
a.brand{
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}
a.brand:hover{ opacity: .85; }
a.brand:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Pulsante flottante WhatsApp: fisso in basso, resta visibile durante lo scroll */
.wa-fab{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--cookie-notice-offset, 0px));
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 20px 13px 13px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 2px 10px rgba(37,211,102,.45);
  text-decoration: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab svg{
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.wa-fab:hover,
.wa-fab:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 3px 14px rgba(37,211,102,.6);
}
.wa-fab:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.wa-fab::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: wa-fab-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-fab-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .wa-fab::before{ animation: none; }
  .wa-fab{ transition: none; }
}
@media (max-width: 480px){
  .wa-fab{
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--cookie-notice-offset, 0px));
    padding: 11px 16px 11px 11px;
    font-size: 13px;
    gap: 8px;
  }
  .wa-fab svg{
    width: 22px;
    height: 22px;
  }
}

/* Avviso cookie: fascia informativa, compare una sola volta a visita/dispositivo */
.cookie-notice{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #141416;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(0,0,0,.4);
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-notice.visible{
  transform: translateY(0);
}
.cookie-notice p{
  margin: 0;
  flex: 1 1 420px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cookie-notice a{
  color: var(--gold);
  text-decoration: underline;
}
.cookie-notice button{
  flex-shrink: 0;
  background: var(--gold);
  color: #141414;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cookie-notice button:hover,
.cookie-notice button:focus-visible{
  background: var(--gold-dark);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce){
  .cookie-notice{ transition: none; }
}
@media (max-width: 600px){
  .cookie-notice{
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .cookie-notice button{
    width: 100%;
  }
}
