/* ============================================================
   Caterina – Firma i Capelli
   style.css — Foglio di stile principale
   Struttura pensata per futura conversione in tema WordPress
   ============================================================ */

/* ============================================================
   1. VARIABILI CSS (Design Tokens)
   ============================================================ */
:root {
  /* Colori */
  --color-dark:       #1c1a18;
  --color-dark-soft:  #2e2b28;
  --color-gold:       #b8955a;
  --color-gold-light: #d4b483;
  --color-gold-pale:  #f0e6d3;
  --color-cream:      #f9f6f1;
  --color-cream-mid:  #f0ebe3;
  --color-white:      #ffffff;
  --color-text:       #3a3530;
  --color-text-muted: #8c857c;
  --color-border:     #e5dfd7;

  /* Tipografia */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  /* Spaziature */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  /* Layout */
  --max-width:    1200px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* Transizioni */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Altezza top bar (usata per offset header) */
  --topbar-h: 36px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-small   { font-size: 0.875rem; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--cream {
  background-color: var(--color-cream-mid);
}

.section--gold-pale {
  background-color: var(--color-gold-pale);
}

/* Griglia generica */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Separatore decorativo */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.4;
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.4;
}

/* Label sopra i titoli di sezione */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: var(--space-sm) auto 0;
}

/* ============================================================
   5. BOTTONI
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.9em 2.2em;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn--dark:hover {
  background-color: transparent;
  color: var(--color-dark);
}

/* ============================================================
   6. HEADER & NAVIGAZIONE
   <!-- WordPress: verrà convertito in header.php -->
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.35s ease, box-shadow var(--transition);
}

/* Quando la top bar è nascosta, l'header sale a top:0 */
.topbar-hidden .site-header {
  top: 0;
}

/* Header trasparente sulla hero */
.site-header.header--transparent {
  background-color: transparent;
}

/* Header scrollato */
.site-header.header--scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Header solido — sempre fisso in cima */
.site-header.header--solid {
  background-color: var(--color-white);
}

/* Shadow aggiunta via JS allo scroll */
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo img,
.site-logo .custom-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  display: block;
  flex-shrink: 0;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition);
}

.site-logo .logo-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.header--transparent .logo-name,
.header--transparent .logo-tagline {
  color: var(--color-white);
}

.header--transparent .logo-tagline {
  color: var(--color-gold-light);
}

/* Navigazione principale */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  border-radius: 100px;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
}

.header--transparent .main-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.header--transparent .main-nav a:hover,
.header--transparent .main-nav a.active {
  color: var(--color-gold-light);
}

/* CTA nell'header */
.header-cta .btn {
  padding: 0.8em 1.8em;
  font-size: 0.875rem;
}

/* Elementi solo-mobile: nascosti di default su desktop */
.nav-close,
.nav-mobile-info {
  display: none;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.header--transparent .hamburger span {
  background-color: var(--color-white);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 26, 24, 0.72) 0%,
    rgba(28, 26, 24, 0.35) 60%,
    rgba(28, 26, 24, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 640px;
}

.hero-content .section-label {
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero pagine interne (più piccolo) */
.page-hero {
    padding: calc(var(--space-xl) + 80px + var(--topbar-h)) 0 var(--space-xl);
    background-color: #1c1a18;
    background-size: cover;
    background-position: center 74px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
}

.page-hero h1 {
  color: var(--color-white);
  position: relative;
}

.page-hero .section-label {
  color: var(--color-gold);
  position: relative;
}

.page-hero .breadcrumb {
  position: relative;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-gold-light);
}

.page-hero .breadcrumb span {
  margin: 0 0.5rem;
}

/* ============================================================
   8. SEZIONE SERVIZI (home preview)
   ============================================================ */
.services-preview {
  background-color: var(--color-white);
}

.service-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================================
   9. SEZIONE CHI SIAMO — Proposta 2 Dark luxury
   ============================================================ */
.about-p2 {
  background: var(--color-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.about-p2-content {
  padding: 5rem 4rem 5rem max(var(--space-md), calc((100vw - var(--max-width)) / 2 + var(--space-md)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-p2-content .section-label {
  color: var(--color-gold);
}

.about-p2-content h2 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.15;
}

.about-p2-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
  max-width: 440px;
}

.about-p2-stats {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}

.about-p2-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1;
}

.about-p2-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.about-p2-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  margin: 0 0 2rem;
}

.about-p2-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-p2-actions .btn--outline {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
}

.about-p2-actions .btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.about-p2-image {
  position: relative;
  overflow: hidden;
}

.about-p2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
  display: block;
}

.about-p2-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-dark) 0%, transparent 40%);
}

@media (max-width: 768px) {
  .about-p2 {
    grid-template-columns: 1fr;
  }
  .about-p2-image {
    height: 320px;
    order: -1;
  }
  .about-p2-image::after {
    background: linear-gradient(to bottom, var(--color-dark) 0%, transparent 50%);
  }
  .about-p2-content {
    padding: 2.5rem 1.5rem;
  }
  .about-p2-content p { max-width: 100%; }
  .about-p2-stats { gap: 2rem; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Riquadro decorativo sull'immagine */
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.5;
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(184, 149, 90, 0.35);
}

.about-badge .badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .badge-text {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about-content .section-label {
  display: block;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-quote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-dark-soft);
  line-height: 1.6;
}

.about-actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   10. GALLERIA HOME — Swiper carousel + GLightbox
   ============================================================ */
.gallery-section {
  background-color: var(--color-dark);
  padding: var(--space-lg) 0;
  overflow: hidden;
  position: relative;
}

.gallery-swiper-wrap {
  width: 100%;
  overflow: hidden;
}

/* Slide */
.gallery-swiper .swiper-slide {
  width: 340px;
  height: 580px;
  overflow: hidden;
  position: relative;
}

.gallery-swiper .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Overlay hover con icona zoom */
.gallery-swiper .swiper-slide a::after {
  content: '⤢';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0);
  background: rgba(28, 26, 24, 0);
  transition: all var(--transition);
}

.gallery-swiper .swiper-slide:hover img {
  transform: scale(1.06);
}

.gallery-swiper .swiper-slide:hover a::after {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(28, 26, 24, 0.4);
}

/* Frecce navigazione */
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: var(--color-white);
  background: rgba(28, 26, 24, 0.55);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition);
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
  background: rgba(184, 149, 90, 0.8);
  border-color: transparent;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

/* Pallini */
.gallery-swiper .swiper-pagination {
  bottom: 0.75rem;
}

.gallery-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--color-gold);
}

/* Responsive slide width */
@media (max-width: 768px) {
  .gallery-swiper .swiper-slide {
    width: 260px;
    height: 420px;
  }
}

@media (max-width: 480px) {
  .gallery-swiper .swiper-slide {
    width: 85vw;
    height: 360px;
  }
}

/* ============================================================
   11. ANTEPRIMA NEWS — Lista minimalista (np3)
   ============================================================ */
.np3 {
  background-color: var(--color-white);
}

.np3-header {
  margin-bottom: 2.5rem;
}

.np3-header h2 {
  margin-top: 0.4rem;
}

.np3-list {
  border-top: 1px solid var(--color-border);
}

.np3-item {
  display: grid;
  grid-template-columns: 44px 180px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}

.np3-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 1;
}

.np3-thumb {
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.np3-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.np3-item:hover .np3-thumb img {
  transform: scale(1.06);
}

.np3-cat {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.np3-body h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  transition: color var(--transition);
}

.np3-body h3 a {
  color: inherit;
}

.np3-item:hover .np3-body h3 {
  color: var(--color-gold);
}

.np3-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.np3-arrow {
  font-size: 1.3rem;
  color: var(--color-border);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.np3-item:hover .np3-arrow {
  color: var(--color-gold);
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .np3-item {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
  }
  .np3-thumb,
  .np3-arrow { display: none; }
}

/* ── vecchio .news-preview (mantenuto per pagine interne) ── */
.news-preview {
  background-color: var(--color-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.news-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
}

.news-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.news-card-date::before {
  content: '·';
  margin-right: var(--space-sm);
  color: var(--color-border);
}

.news-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.news-card h3 a:hover {
  color: var(--color-gold);
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.65;
}

.news-card-link {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.news-card-link:hover {
  gap: 0.8rem;
}

.news-card-link::after {
  content: '→';
}

/* ============================================================
   12. RECENSIONI
   <!-- WordPress: questa sezione verrà convertita in un loop
        dinamico con get_posts() o plugin recensioni.
        Cercare il commento "WP REVIEWS LOOP" nel codice PHP. -->
   ============================================================ */
.reviews-section {
  background-color: var(--color-dark);
  padding: var(--space-xl) 0;
}

.reviews-section .section-header h2,
.reviews-section .section-header p {
  color: var(--color-cream);
}

.reviews-section .section-header p {
  color: rgba(249, 246, 241, 0.6);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.reviews-widget-area {
  margin-top: var(--space-lg);
  color: var(--color-cream);
}

.reviews-widget-area iframe,
.reviews-widget-area .reviews-widget {
  width: 100%;
}

.review-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: background var(--transition);
}

.review-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
  font-size: 1rem;
}

.review-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(249, 246, 241, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  flex-shrink: 0;
}

.review-author-info .author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
}

.review-author-info .author-via {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-section {
  background-color: var(--color-gold-pale);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto var(--space-md);
}

.cta-section .cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA dark */
.cta-section--dark {
  background-color: var(--color-dark);
}

.cta-section--dark h2 {
  color: var(--color-white);
}

.cta-section--dark p {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   14. FOOTER — Proposta 3: Editoriale con citazione
   WordPress: verrà convertito in footer.php
   ============================================================ */

.fp3 {
  background: #16140f;
}

/* Barra citazione */
.fp3-quote-bar {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 4rem 2rem;
  text-align: center;
}

.fp3-quote-bar blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

.fp3-quote-bar blockquote em {
  color: var(--color-gold);
  font-style: normal;
}

/* Griglia principale */
.fp3-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Colonna brand */
.fp3-logo-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  display: block;
  line-height: 1;
}

.fp3-logo-tag {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin: 5px 0 1.5rem;
}

.fp3-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.fp3-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fp3-social a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color var(--transition);
}

.fp3-social a::before {
  content: '— ';
  color: rgba(184,149,90,.4);
}

.fp3-social a:hover { color: var(--color-gold); }

/* Colonne nav */
.fp3-col h4,
.fp3-contacts h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 1.5rem;
}

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

.fp3-col ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.fp3-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--transition);
}

.fp3-col ul li a:hover { color: var(--color-gold); }

/* Colonna contatti */
.fp3-contact-line {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.fp3-contact-line .lbl {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 3px;
}

.fp3-contact-line .val {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

.fp3-contact-line .val a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}

.fp3-contact-line .val a:hover { color: var(--color-gold-light); }

/* Bottom bar */
.fp3-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.18);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp3-bottom a {
  color: rgba(255,255,255,.18);
  text-decoration: none;
  transition: color var(--transition);
}

.fp3-bottom a:hover { color: var(--color-gold); }

/* Responsive */
@media (max-width: 1024px) {
  .fp3-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .fp3-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
  .fp3-quote-bar { padding: 3rem 1.5rem; }
  .fp3-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   14b. SERVIZI HOME — 3 PROPOSTE
   ============================================================ */


/* ── PROPOSTA 1 — Editoriale numerata ──────────────────────── */
.sv1 {
  background-color: var(--color-cream);
}

.sv1-header {
  margin-bottom: var(--space-lg);
}

.sv1-header h2 {
  margin-top: 0.4rem;
}

.sv1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.sv1-item {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--color-border);
  padding-right: 2.5rem;
}

.sv1-item:first-child {
  padding-left: 0;
}

.sv1-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.5rem;
}

.sv1-item:not(:first-child):not(:last-child) {
  padding-left: 2.5rem;
}

.sv1-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1rem;
}

.sv1-line {
  width: 32px;
  height: 1px;
  background-color: var(--color-gold);
  margin-bottom: 1.2rem;
}

.sv1-item h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.sv1-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── PROPOSTA 2 — Dark strip orizzontale ───────────────────── */
.sv2 {
  background-color: var(--color-dark);
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 420px;
}

.sv2-header {
  padding: var(--space-xl) var(--space-lg) var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.sv2-header .section-label {
  color: var(--color-gold);
}

.sv2-header h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 0.5rem;
}

.sv2-header .btn--outline {
  color: var(--color-gold);
  border-color: var(--color-gold);
  align-self: flex-start;
}

.sv2-header .btn--outline:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.sv2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sv2-item {
  padding: var(--space-xl) var(--space-md);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.sv2-item:last-child {
  border-right: none;
}

.sv2-item:hover {
  border-top-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.03);
}

.sv2-item h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.2;
  transition: color var(--transition);
}

.sv2-item:hover h3 {
  color: var(--color-gold-light);
}

.sv2-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin: 0;
  transition: color var(--transition);
}

.sv2-item:hover p {
  color: rgba(255, 255, 255, 0.65);
}

/* ── PROPOSTA 3 — Card fotografiche ────────────────────────── */
.sv3 {
  background-color: var(--color-white);
}

.sv3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sv3-card {
  position: relative;
  height: 440px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

.sv3-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 26, 24, 0.88) 0%,
    rgba(28, 26, 24, 0.3) 50%,
    rgba(28, 26, 24, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
  transition: background var(--transition-slow);
}

.sv3-card:hover .sv3-overlay {
  background: linear-gradient(
    to top,
    rgba(28, 26, 24, 0.95) 0%,
    rgba(28, 26, 24, 0.6) 60%,
    rgba(28, 26, 24, 0.25) 100%
  );
}

.sv3-overlay h3 {
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  transform: translateY(4px);
  transition: transform var(--transition);
}

.sv3-card:hover .sv3-overlay h3 {
  transform: translateY(0);
}

.sv3-overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.sv3-card:hover .sv3-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.sv3-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  display: inline-block;
}

.sv3-card:hover .sv3-link {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive proposte */
@media (max-width: 900px) {
  .sv2 {
    grid-template-columns: 1fr;
  }
  .sv2-header {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-lg) var(--space-md);
  }
  .sv2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sv2-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .sv1-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    border-top: none;
  }
  .sv1-item {
    border-right: none;
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0 !important;
  }
  .sv2-grid {
    grid-template-columns: 1fr;
  }
  .sv2-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .sv3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sv3-card { height: 300px; }
}

/* ============================================================
   15. PAGINA SERVIZI
   ============================================================ */
.services-section {
  background-color: var(--color-white);
}

.services-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.services-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 1rem 1.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-gold);
}

.tab-btn.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Griglia servizi con immagine + lista */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.service-detail-content h3 {
  margin-bottom: var(--space-sm);
}

.service-detail-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-list li::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Tabella prezzi — vecchia (mantenuta per compatibilità) */
.prices-section {
  background-color: var(--color-cream);
}

/* ── Prezzi variante scura ── */
.prices-dark {
  background-color: var(--color-dark);
}

.prices-dark-head {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.prices-dark-head .section-label {
  color: var(--color-gold);
}

.prices-dark-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.prices-dark-head p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
}

.prices-dark-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.pd-category {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.8rem 0;
}

.pd-category:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-cat-label {
  padding-right: 3rem;
  padding-top: 0.2rem;
}

.pd-cat-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.pd-cat-label h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.15;
}

.pd-rows {
  display: flex;
  flex-direction: column;
}

.pd-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-row:last-child {
  border-bottom: none;
}

.pd-name {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.pd-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.32);
  flex: 1;
}

.pd-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-gold-light);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pd-price-val {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.prices-dark-note {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.28);
  padding-bottom: var(--space-xl);
}

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
}

.price-table thead {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.price-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.price-table tbody tr:hover {
  background-color: var(--color-cream);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.price-table td {
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
}

.price-table td:last-child {
  font-weight: 600;
  color: var(--color-gold);
  text-align: right;
}

.price-table .category-row td {
  background-color: var(--color-gold-pale);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 0.7rem 1.5rem;
}

.price-note {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   16. PAGINA NEWS
   ============================================================ */
.news-archive {
  background-color: var(--color-cream);
}

/*
 * WordPress: questa sezione diventerà archive-news.php
 * con il loop standard di WordPress:
 * <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
 *   <!-- news-card -->
 * <?php endwhile; endif; ?>
 */
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Card news grande (featured) */
.news-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.news-card--featured:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: none;
}

.news-card--featured .news-card-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}

.news-card--featured .news-card-body {
  padding: var(--space-lg);
}

.news-card--featured h3 {
  font-size: 1.8rem;
}

.news-card--featured p {
  font-size: 1rem;
}

/* Pagination — statica + WordPress (the_posts_pagination) */
.pagination,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.navigation.pagination {
  margin-top: var(--space-md);
}

.pagination a,
.pagination span,
.navigation.pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
  background-color: var(--color-white);
  text-decoration: none;
}

.pagination a:hover,
.pagination .current,
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.navigation.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

/* ============================================================
   17. PAGINA CONTATTI
   ============================================================ */
/* ============================================================
   SEZIONE CONTATTI — Sfondo scuro
   ============================================================ */
.cd-section {
  background-color: var(--color-dark);
}

.cd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Colonna info (sinistra) */
.cd-info {
  padding: var(--space-xl) var(--space-lg) var(--space-xl) var(--space-md);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cd-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
}

.cd-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.cd-block {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cd-block-title {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}

.cd-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cd-row:last-child { border-bottom: none; }

.cd-row-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  min-width: 80px;
  flex-shrink: 0;
}

.cd-row-val {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.cd-row-val a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}
.cd-row-val a:hover { color: var(--color-gold); }

/* Orari */
.cd-hours { display: flex; flex-direction: column; }

.cd-hour-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cd-hour-row:last-child { border-bottom: none; }

.cd-hour-day {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  min-width: 90px;
}
.cd-hour-time {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.cd-closed .cd-hour-day,
.cd-closed .cd-hour-time {
  color: rgba(255, 255, 255, 0.2);
}
.cd-hour-row.cd-today .cd-hour-day,
.cd-hour-row.cd-today .cd-hour-time {
  color: var(--color-gold);
}

/* Bottone telefono */
.cd-btn-tel {
  display: block;
  margin-top: var(--space-md);
  padding: 1rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.cd-btn-tel:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Colonna form (destra) */
.cd-form-col {
  padding: var(--space-xl) var(--space-md) var(--space-xl) var(--space-lg);
}

.cd-form-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

/* Campi form scuri */
.cd-form-col .cdf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cd-form-col .cdf-group {
  margin-bottom: 1rem;
}

.cd-form-col label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.45rem;
}

.cd-form-col input,
.cd-form-col select,
.cd-form-col textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  appearance: none;
}

.cd-form-col input::placeholder,
.cd-form-col textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.cd-form-col input:focus,
.cd-form-col select:focus,
.cd-form-col textarea:focus {
  border-color: var(--color-gold);
}

.cd-form-col select option {
  background: var(--color-dark);
  color: var(--color-white);
}

.cd-form-col textarea { resize: vertical; }

.cdf-privacy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.cdf-privacy a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .cd-inner {
    grid-template-columns: 1fr;
  }
  .cd-info {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: var(--space-lg) var(--space-md);
  }
  .cd-form-col {
    padding: var(--space-lg) var(--space-md);
  }
}

.contacts-section {
  background-color: var(--color-white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-block {
  margin-bottom: var(--space-md);
}

.contact-info-block h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.contact-item .icon {
  color: var(--color-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-item .value {
  font-size: 0.95rem;
  color: var(--color-text);
}

.contact-item .value a:hover {
  color: var(--color-gold);
}

/* Orari */
.hours-table {
  width: 100%;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.hours-table .closed {
  color: var(--color-text-muted);
  font-style: italic;
}

.hours-table .today td {
  font-weight: 600;
  color: var(--color-gold);
}

/* Form contatto */
.contact-form-wrap {
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.contact-form-wrap h3 {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.form-privacy a {
  color: var(--color-gold);
  text-decoration: underline;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Mappa placeholder */
.map-section {
  background-color: var(--color-cream-mid);
  padding: 0;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--color-cream-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/*
 * WordPress: sostituire questo placeholder con:
 * <iframe src="https://maps.google.com/?q=..." ...></iframe>
 * oppure usare il blocco Gutenberg "Map" o un plugin maps.
 */
.map-placeholder .map-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
}

.map-placeholder p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.map-placeholder a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: underline;
}

/* ============================================================
   18. COMPONENTI VARI
   ============================================================ */

/* Barra nera in cima — fixed, scivola via allo scroll */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  height: var(--topbar-h);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.top-bar a {
  color: var(--color-gold-light);
}

/* Quando l'utente scrolla: top bar sale e sparisce */
.topbar-hidden .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Tag categoria */
.tag {
  display: inline-block;
  padding: 0.25em 0.8em;
  background-color: var(--color-gold-pale);
  color: var(--color-gold);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   PAGINA GENERICA — page.php / page.html
   WordPress: the_content() scrive dentro .page-content
   ============================================================ */
.page-content-section {
  background-color: var(--color-white);
}

/* ============================================================
   SINGLE ARTICLE — single.php
   ============================================================ */

/* Hero variante articolo: overlay più scuro per leggibilità */
.page-hero--article {
  background-color: #0a0806;
}
.page-hero--article::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 100%);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-cat {
  display: inline-block;
}

.article-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
}

.article-readtime {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Wrapper articolo */
.single-article {
  background: var(--color-cream);
  padding: 0 0 4rem;
}

.single-article-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Immagine di copertina */
.single-article-cover {
  margin: 0 -2rem 3rem;
  overflow: hidden;
  max-height: 480px;
}

.single-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corpo articolo */
.single-article-body {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.85;
}

.single-article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--color-dark);
  margin: 2.5rem 0 1rem;
}

.single-article-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--color-dark);
  margin: 2rem 0 0.75rem;
}

.single-article-body p {
  margin-bottom: 1.5rem;
}

.single-article-body p:first-of-type {
  font-size: 1.4rem;
  color: var(--color-text);
  line-height: 1.3;
}

.single-article-body ul,
.single-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.single-article-body li {
  margin-bottom: 0.5rem;
}

.single-article-body strong {
  color: var(--color-dark);
  font-weight: 600;
}

.single-article-body a {
  color: var(--color-gold);
  text-decoration: underline;
}

.single-article-body blockquote {
  border-left: 3px solid var(--color-gold);
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-gold);
}

/* Navigazione prev / next */
.single-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.san-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  transition: border-color var(--transition);
  text-decoration: none;
}

.san-item:hover {
  border-color: rgba(184,149,90,0.4);
}

.san-item--next {
  text-align: right;
}

.san-dir {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.san-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* Altri articoli correlati */
.related-posts {
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.related-posts .np3-body h3 {
  color: var(--color-white);
}

.related-posts .np3-body p {
  color: rgba(255,255,255,0.55);
}

.related-posts-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.related-posts-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-white);
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .single-article-cover {
    margin: 0 -1.25rem 2rem;
  }

  .single-article-inner {
    padding: 0 1.25rem;
  }

  .single-article-nav {
    grid-template-columns: 1fr;
  }

  .san-item--next {
    text-align: left;
  }
}

.page-content {
  max-width: 740px;
  margin: 0 auto;
}

/* Testo introduttivo più grande */
.page-content .page-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Tipografia contenuto */
.page-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--color-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  color: var(--color-dark);
  margin-top: var(--space-md);
  margin-bottom: 0.75rem;
}

.page-content p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.page-content ul li,
.page-content ol li {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  padding-left: 0.4rem;
}

.page-content blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--color-dark);
  border-left: 2px solid var(--color-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: var(--space-md) 0;
  line-height: 1.5;
}

.page-content strong { color: var(--color-dark); }

.page-content a:not(.btn) {
  color: var(--color-gold);
  text-decoration: underline;
}

.page-content .btn {
  margin-top: var(--space-sm);
}

/* Alert / Notifica form */
/* ── Contact Form 7 — integrazione stili tema ────────────────────────────── */

/* Rimuove margini/padding aggiuntivi del wrapper CF7 */
.cd-form-col .wpcf7 {
  margin: 0;
  padding: 0;
}

/* CF7 6.x: il fieldset hidden-fields-container non ha più display:none inline */
.wpcf7 fieldset.hidden-fields-container {
  display: none;
}

/* Il pulsante submit CF7 (<input type="submit">) occupa tutta la larghezza */
.cd-form-col .cdf-submit {
  margin-top: 0.5rem;
}
.cd-form-col .cdf-submit input[type="submit"] {
  width: 100%;
  cursor: pointer;
}

/* Messaggio risposta CF7 6.x
   Le classi di stato sono sul <form>, non sul response-output */
.cd-form-col .wpcf7-response-output {
  display: none;                    /* nascosto di default */
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  border-radius: 3px;
  border: 1px solid transparent;
}

/* Mostra quando il form ha uno stato attivo */
.cd-form-col .wpcf7-form.sent .wpcf7-response-output,
.cd-form-col .wpcf7-form.failed .wpcf7-response-output,
.cd-form-col .wpcf7-form.invalid .wpcf7-response-output,
.cd-form-col .wpcf7-form.unaccepted .wpcf7-response-output,
.cd-form-col .wpcf7-form.spam .wpcf7-response-output,
.cd-form-col .wpcf7-form.aborted .wpcf7-response-output {
  display: block;
}

/* Successo */
.cd-form-col .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(184, 149, 90, 0.12);
  border-left: 3px solid var(--color-gold);
  border-color: var(--color-gold);
  color: #e8d5a8;
}

/* Errore invio / spam */
.cd-form-col .wpcf7-form.failed .wpcf7-response-output,
.cd-form-col .wpcf7-form.spam .wpcf7-response-output,
.cd-form-col .wpcf7-form.aborted .wpcf7-response-output {
  background: rgba(200, 60, 60, 0.12);
  border-color: rgba(220, 100, 100, 0.6);
  color: #f0b0b0;
}

/* Validazione / checkbox obbligatoria */
.cd-form-col .wpcf7-form.invalid .wpcf7-response-output,
.cd-form-col .wpcf7-form.unaccepted .wpcf7-response-output {
  background: rgba(200, 160, 0, 0.1);
  border-color: rgba(220, 180, 0, 0.5);
  color: #f0d87a;
}

/* Errori di validazione sui singoli campi */
.cd-form-col .wpcf7-not-valid {
  border-color: rgba(220, 100, 100, 0.6) !important;
}
.cd-form-col .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.72rem;
  color: #e9a0a6;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* Spinner — usa il colore gold del tema */
.cd-form-col .wpcf7-spinner {
  border-color: rgba(255,255,255,0.15);
  border-top-color: var(--color-gold);
  margin-left: 0.5rem;
}

/* Acceptance (checkbox privacy) — sopra il pulsante */
.cd-form-col .cdf-acceptance {
  margin-bottom: 1rem;
}

.cd-form-col .cdf-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
}

.cd-form-col .cdf-acceptance input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 3px;
  accent-color: var(--color-gold);
  cursor: pointer;
  padding: 0;
}

/* Override: il testo acceptance NON deve essere maiuscolo né stile label */
.cd-form-col .cdf-acceptance .wpcf7-list-item-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.cd-form-col .cdf-acceptance .wpcf7-not-valid-tip {
  margin-top: 0.3rem;
}

/* Submit button CF7 — aspetto gold/pill uguale a .btn--primary */
.cd-form-col input.cdf-btn-submit {
  display: block;
  width: 100%;
  padding: 0.9em 2.2em;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--color-gold);
  border-radius: 999px;
  background-color: var(--color-gold);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  margin-top: 0;
}

.cd-form-col input.cdf-btn-submit:hover {
  background-color: transparent;
  color: var(--color-gold);
}

/* ── Fine CF7 ────────────────────────────────────────────────────────────── */

.form-notice {
  display: none;
  padding: 1rem var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.form-notice--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-notice--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================================
   19. RESPONSIVE — BREAKPOINTS
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-brand {
    grid-column: span 2;
  }

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

  .gallery-item--tall {
    grid-row: span 1;
  }

  .about-grid {
    gap: var(--space-lg);
  }
}

/* Mobile large (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 3.5rem;
  }

  /* Nav mobile — drawer scuro */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    background: #0d0b09;
    box-shadow: -12px 0 60px rgba(0,0,0,0.5);
    padding: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main-nav.is-open {
    right: 0;
  }

  /* Close button */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 1;
  }
  .nav-close:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
  }

  /* Lista link */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 1.5rem;
    flex: 1;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .main-nav a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--color-gold);
  }

  /* Info di contatto in fondo al drawer */
  .nav-mobile-info {
    padding: 1.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav-mobile-tel {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold) !important;
    letter-spacing: 0.03em;
  }

  .nav-mobile-address {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
    margin: 0;
  }

  .nav-mobile-social {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.25rem;
  }

  .nav-mobile-social a {
    font-size: 0.75rem !important;
    font-family: var(--font-body) !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4) !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    transition: color var(--transition);
  }

  .nav-mobile-social a:hover {
    color: var(--color-gold) !important;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-open {
    display: none;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
  }

  .nav-overlay.is-active {
    display: block;
  }

  /* Hero */
  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Griglie → 1 colonna */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-archive-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .news-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .news-card--featured .news-card-image {
    min-height: 220px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    order: -1;
  }

  .about-image-wrap img {
    height: 320px;
  }

  .about-image-wrap::before {
    display: none;
  }

  .about-badge {
    bottom: 1rem;
    right: 1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  /* Servizi */
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail--reverse {
    direction: ltr;
  }

  .service-detail-image img {
    height: 280px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  /* Prezzi */
  .price-table thead th:nth-child(2),
  .price-table td:nth-child(2) {
    display: none;
  }

  /* Contatti */
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Mobile small (≤ 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 100svh;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 240px;
  }

  .gallery-item--tall {
    height: 240px;
  }

  .services-tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
  }

  .about-badge {
    padding: 0.9rem 1rem;
  }

  .about-badge .badge-number {
    font-size: 1.8rem;
  }
}

/* ============================================================
   COOKIE BANNER — tre varianti
   ============================================================ */

/* ── Utility: nasconde correttamente con l'attributo hidden ─ */
#cookie-banner[hidden],
#cookie-overlay[hidden] { display: none !important; }

/* ── Pulsanti condivisi ─────────────────────────────────────── */
.ck-btn {
  display: inline-block;
  padding: 0.6em 1.5em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.ck-btn--accept {
  background: var(--color-gold);
  color: #fff;
}
.ck-btn--accept:hover {
  background: transparent;
  color: var(--color-gold);
}
.ck-btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.18);
}
.ck-btn--decline:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* ── VARIANTE 1 — Barra orizzontale in basso ────────────────── */
.ck-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(14, 11, 8, 0.97);
  border-top: 1px solid rgba(184,149,90,0.22);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  animation: ck-rise 0.35s ease;
}
.ck-bar__text {
  flex: 1;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
  min-width: 200px;
}
.ck-bar__text a {
  color: var(--color-gold);
  text-decoration: underline;
}
.ck-bar__actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .ck-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
  }
  .ck-bar__actions {
    justify-content: flex-end;
  }
}

/* ── VARIANTE 2 — Card flottante (bottom-right) ─────────────── */
.ck-card {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 300px;
  background: #111009;
  border: 1px solid rgba(184,149,90,0.32);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  animation: ck-fadein 0.4s ease;
}
.ck-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 0;
}
.ck-card__text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}
.ck-card__link {
  font-size: 0.76rem;
  color: var(--color-gold);
  text-decoration: underline;
  align-self: flex-start;
  margin-top: -0.1rem;
}
.ck-card__actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.2rem;
}
.ck-card__actions .ck-btn {
  flex: 1;
  text-align: center;
  padding: 0.55em 0.8em;
}
@media (max-width: 420px) {
  .ck-card {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

/* ── VARIANTE 3 — Pannello centrato con overlay ─────────────── */
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: ck-fadein 0.3s ease;
}
.ck-modal {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(540px, calc(100vw - 2rem));
  background: #111009;
  border: 1px solid rgba(184,149,90,0.3);
  border-radius: 4px;
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  animation: ck-modal-in 0.4s ease;
}
.ck-modal__icon {
  display: block;
  font-size: 1rem;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
  opacity: 0.65;
  letter-spacing: 0.3em;
}
.ck-modal__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 0.85rem;
}
.ck-modal__text {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.ck-modal__links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.75rem;
}
.ck-modal__links a {
  color: var(--color-gold);
  text-decoration: underline;
}
.ck-modal__actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}
@media (max-width: 520px) {
  .ck-modal {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-radius: 4px 4px 0 0;
    padding: 2rem 1.25rem 1.5rem;
    animation: ck-rise 0.4s ease;
  }
  .ck-modal__actions {
    flex-direction: column-reverse;
  }
  .ck-modal__actions .ck-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Animazioni ──────────────────────────────────────────────── */
@keyframes ck-rise {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ck-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ck-modal-in {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   PAGINA 404
   ============================================================ */
.error-404 {
  background: var(--color-dark);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.error-404-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.error-404-code {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.error-404-inner .section-label {
  display: block;
  margin-bottom: 1rem;
}

.error-404-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.error-404-inner p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.error-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
