/* ==========================================================================
   Studio Legale Avv. Laura Proietti — Torino
   Palette ispirata alle pareti bordeaux dello studio
   ========================================================================== */

:root {
  --bordeaux:        #6E1118;
  --bordeaux-deep:   #4A0810;
  --bordeaux-soft:   #8B1A1F;
  --bordeaux-ink:    #2B0709;
  --gold:            #B89968;
  --gold-soft:       #D4B98C;
  --cream:           #F6F1E8;
  --cream-warm:      #FBF7EF;
  --paper:           #FFFFFF;
  --ink:             #1A1212;
  --ink-soft:        #4A3F3A;
  --muted:           #8A7F78;
  --line:            rgba(110, 17, 24, 0.12);
  --wood:            #6F4134;

  --shadow-sm: 0 2px 12px rgba(46, 9, 13, 0.08);
  --shadow-md: 0 10px 40px rgba(46, 9, 13, 0.12);
  --shadow-lg: 0 20px 60px rgba(46, 9, 13, 0.18);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bordeaux-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--bordeaux-ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-tight { padding: 50px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 14px;
  display: inline-block;
}
.divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 18px 0 28px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--bordeaux-ink);
  color: var(--cream);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar a { color: var(--cream); }
.topbar a:hover { color: var(--gold-soft); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span svg { vertical-align: -3px; margin-right: 6px; opacity: 0.8; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--bordeaux-ink);
  font-weight: 500;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--bordeaux);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--bordeaux); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid var(--bordeaux);
  background: var(--bordeaux);
  color: var(--paper);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--bordeaux);
}
.btn-outline:hover { background: var(--bordeaux); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover { background: var(--cream); color: var(--bordeaux); border-color: var(--cream); }
.btn-lg { padding: 16px 34px; font-size: 15px; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--bordeaux-ink); margin: 6px 0;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO con immagini rotanti
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bordeaux-ink);
}
.hero-slides {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  transform: scale(1.05);
  animation: kenburns 14s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes kenburns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(43, 7, 9, 0.78) 0%, rgba(74, 8, 16, 0.55) 50%, rgba(43, 7, 9, 0.65) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  color: var(--paper);
  max-width: 760px;
}
.hero-content .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 36px;
  color: rgba(246, 241, 232, 0.92);
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2.4s infinite;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 32px;
  background: var(--cream); margin: 10px auto 0;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero più piccolo per pagine interne */
.hero-page {
  min-height: 50vh;
}
.hero-page h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section-header { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-header h2 { margin-bottom: 14px; }
.section-header .lead { margin: 0 auto; max-width: 620px; }

.bg-cream { background: var(--cream); }
.bg-dark { background: var(--bordeaux-ink); color: var(--cream); }
.bg-dark h2, .bg-dark h3 { color: var(--paper); }
.bg-dark .eyebrow { color: var(--gold-soft); }

/* ==========================================================================
   Video di presentazione
   ========================================================================== */
.video-section { padding: 80px 0; background: var(--bordeaux-ink); }
.video-section .section-header h2 { color: var(--paper); }
.video-section .section-header .lead { color: rgba(246, 241, 232, 0.8); }
.video-section .eyebrow { color: var(--gold-soft); }
.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bordeaux-deep);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.video-wrap img,
.video-wrap video,
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-wrap iframe { object-fit: initial; border: 0; }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  background: rgba(43, 7, 9, 0.35);
  transition: background 0.4s ease;
}
.video-wrap:hover .video-play { background: rgba(43, 7, 9, 0.18); }
.video-play-btn {
  width: 80px; height: 80px;
  background: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-wrap:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.video-play-btn svg { margin-left: 4px; }
/* Nasconde il play overlay quando il video è in riproduzione */
.video-wrap.playing .video-play { display: none; }
@media (max-width: 600px) {
  .video-play-btn { width: 60px; height: 60px; }
  .video-play-btn svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   Servizi
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
/* Griglia forzata a 4 colonne per gli step (1-2-3-4) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper);
  padding: 42px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  width: 56px; height: 56px;
  background: var(--cream);
  color: var(--bordeaux);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .icon { background: var(--bordeaux); color: var(--paper); }
.service-card h3 { color: var(--bordeaux-ink); margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); margin-bottom: 20px; flex-grow: 1; }
.service-card .link {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bordeaux);
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
}
.service-card .link::after { content: '→'; transition: transform var(--transition); }
.service-card:hover .link::after { transform: translateX(4px); }

/* ==========================================================================
   Sezione "Chi sono" / Split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split-image img,
.split-image .rotating-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.split-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43, 7, 9, 0.2), transparent 50%);
}
.split-image .badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--paper);
  padding: 16px 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  z-index: 2;
}
.split-image .badge strong {
  display: block;
  font-size: 2rem;
  color: var(--bordeaux);
  line-height: 1;
}
.split-image .badge span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.split-content h2 { margin-bottom: 18px; }
.split-content .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bordeaux);
  margin-top: 24px;
}

/* ==========================================================================
   Banner pieno con immagini rotanti
   ========================================================================== */
.banner {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--paper);
}
.banner .hero-slides { position: absolute; inset: 0; }
.banner .hero-overlay {
  background: linear-gradient(90deg, rgba(43, 7, 9, 0.85) 0%, rgba(74, 8, 16, 0.65) 100%);
}
.banner .container { position: relative; z-index: 3; }
.banner h2 { color: var(--paper); margin-bottom: 16px; }
.banner p { font-size: 1.15rem; max-width: 580px; margin-bottom: 28px; color: rgba(246,241,232,0.92); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat { padding: 20px; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 400;
}
.stat span {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.85);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  grid-auto-rows: 220px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-item:nth-child(3n+1) { grid-row: span 2; }
.gallery-item:nth-child(5n+2) { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43, 7, 9, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 4, 6, 0.94);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 0;
  color: var(--cream); font-size: 36px;
  cursor: pointer; line-height: 1;
}

/* ==========================================================================
   Pagina servizio dettaglio
   ========================================================================== */
.article {
  max-width: 800px;
  margin: 0 auto;
}
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; color: var(--bordeaux); }
.article ul { padding-left: 22px; }
.article ul li { margin-bottom: 8px; }
.article .callout {
  background: var(--cream);
  border-left: 3px solid var(--bordeaux);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--bordeaux-ink);
  font-style: italic;
}

/* ==========================================================================
   FAQ Accordion (usato nelle pagine servizio)
   ========================================================================== */
.faq-section { padding: 80px 0; background: var(--cream); }
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--bordeaux);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--bordeaux-ink);
  position: relative;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--bordeaux);
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--bordeaux-deep);
}
.faq-item summary:hover { color: var(--bordeaux); }
.faq-answer {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 22px; margin: 0.4em 0 0; }
.faq-answer ul li { margin-bottom: 6px; }
.faq-answer strong { color: var(--bordeaux-ink); }
.faq-answer a { color: var(--bordeaux); text-decoration: underline; }

/* ==========================================================================
   Contatti
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info { padding: 10px 0; }
.contact-info h3 { margin-bottom: 8px; }
.contact-item {
  display: flex; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon {
  width: 44px; height: 44px;
  background: var(--cream);
  color: var(--bordeaux);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 600;
}
.contact-item p { margin: 0; color: var(--ink); font-size: 16px; }
.contact-item a { color: var(--ink); }
.contact-item a:hover { color: var(--bordeaux); }

.contact-form {
  background: var(--paper);
  padding: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-warm);
  transition: border-color var(--transition), background var(--transition);
  color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-consent input { margin-top: 4px; }
.form-message {
  display: none;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  font-size: 14px;
}
.form-message.success { display: block; background: #E8F5E9; color: #1B5E20; border-left: 3px solid #2E7D32; }
.form-message.error   { display: block; background: #FDECEA; color: #B71C1C; border-left: 3px solid #C62828; }

/* ==========================================================================
   Mappa
   ========================================================================== */
.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 400px; display: block; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bordeaux-ink);
  color: rgba(246, 241, 232, 0.78);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer p { color: rgba(246, 241, 232, 0.7); }
.site-footer a { color: rgba(246, 241, 232, 0.85); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 14px;
}
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--bordeaux-ink); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px;
  color: rgba(246, 241, 232, 0.5);
}

/* ==========================================================================
   Pulsante telefono prominente nell'header (v2 — rettangolare)
   ========================================================================== */
.phone-btn,
.phone-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 22px !important;
  background: var(--bordeaux);
  color: var(--paper) !important;
  border: 0;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(110, 17, 24, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  text-transform: none;
}
.phone-btn:hover,
.phone-cta:hover {
  background: var(--bordeaux-deep);
  color: var(--paper) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 17, 24, 0.45);
}
.phone-btn svg,
.phone-cta .phone-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: transparent !important;
  border-radius: 0 !important;
  animation: phonePulse 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-btn svg { animation: none; }
.phone-cta .phone-icon svg { width: 16px; height: 16px; }
@keyframes phonePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Sticky bottom bar mobile (call + whatsapp + calendly) */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(43, 7, 9, 0.08);
  z-index: 150;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink) !important;
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-bar a:active { background: var(--cream); }
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar a.call { color: var(--bordeaux) !important; }
.mobile-bar a.wa svg { color: #25D366; }

/* ==========================================================================
   Calendly badge widget — personalizzazione colori
   ========================================================================== */
.calendly-badge-widget .calendly-badge-content {
  background: var(--bordeaux) !important;
  color: var(--paper) !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 8px 24px rgba(110, 17, 24, 0.45) !important;
  border-radius: 999px !important;
}
.calendly-badge-widget .calendly-badge-content:hover {
  background: var(--bordeaux-deep) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Sezione Instagram feed
   ========================================================================== */
.instagram-section { padding: 70px 0; }
.instagram-section .ig-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.instagram-section .ig-header h2 { margin: 0; }
.instagram-section .ig-header p { margin: 6px 0 0; color: var(--ink-soft); }
.ig-handle {
  font-family: var(--serif);
  color: var(--bordeaux);
  font-size: 1.1rem;
  font-style: italic;
}
.ig-handle::before { content: '@'; opacity: 0.6; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ig-tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  background: var(--bordeaux-ink);
}
.ig-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.ig-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(110, 17, 24, 0.85), rgba(43, 7, 9, 0.85));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ig-tile .ig-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.ig-tile .ig-overlay svg {
  width: 22px; height: 22px;
  margin-right: 8px;
}
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile:hover .ig-overlay { opacity: 1; }
/* Feed Instagram live — markup nostro, popolato da Behold JSON API */
.ig-live-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.ig-live-tile {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bordeaux-ink);
}
.ig-live-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.ig-live-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(110, 17, 24, 0.85), rgba(43, 7, 9, 0.85));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ig-live-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.ig-live-overlay svg { width: 28px; height: 28px; }
.ig-live-tile:hover img { transform: scale(1.08); }
.ig-live-tile:hover::after, .ig-live-tile:hover .ig-live-overlay { opacity: 1; }
.ig-live-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

/* Responsive: 6 cols desktop, 4 cols tablet, 3 cols mobile */
@media (max-width: 980px) {
  .ig-live-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .ig-live-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.ig-follow {
  text-align: center;
  margin-top: 32px;
}
.ig-follow .btn {
  background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FD1D1D);
  border-color: transparent;
}
.ig-follow .btn:hover {
  background: linear-gradient(135deg, #6B2D91, #A12B6F, #BC275A, #D31919);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-cta { display: none; }
  .phone-cta-mobile-header { display: inline-flex !important; }
  body { padding-bottom: 64px; }
  .mobile-bar { display: flex; }
  .whatsapp-float-bottom-offset { display: none !important; }
  .calendly-badge-widget { display: none !important; } /* nel mobile c'è la sticky bar */
}
@media (max-width: 600px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .instagram-section .ig-header { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Animazioni fade-in on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--bordeaux);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 28px 30px;
  z-index: 9998;
  font-size: 14px;
  line-height: 1.6;
  display: none;
  animation: slideUpCookie 0.5s ease;
}
.cookie-banner.show { display: block; }
@keyframes slideUpCookie {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bordeaux-ink);
  margin: 0 0 10px;
}
.cookie-banner p { color: var(--ink-soft); margin-bottom: 18px; }
.cookie-banner a { color: var(--bordeaux); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 12px;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}
.cookie-actions .btn-link {
  background: transparent;
  border: 0;
  color: var(--bordeaux);
  text-decoration: underline;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cookie-actions .btn-link:hover { color: var(--bordeaux-deep); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 4, 6, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal-inner {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.cookie-modal-inner h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.cookie-modal-inner p { color: var(--ink-soft); font-size: 14px; }
.cookie-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
}
.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category-head h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--bordeaux-ink);
}
.cookie-category-head .always-on {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cookie-category p { font-size: 13px; margin: 0; }

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .slider { background: var(--bordeaux); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { background: var(--bordeaux-soft); opacity: 0.6; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-modal-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

/* Trigger riapri preferenze */
.cookie-trigger {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Calendly wrapper */
.calendly-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  overflow: hidden;
}
.calendly-wrap .calendly-inline-widget { min-width: 320px; height: 720px; }

@media (max-width: 600px) {
  .cookie-banner { padding: 22px 20px; left: 12px; right: 12px; bottom: 12px; }
  .cookie-modal-inner { padding: 24px 20px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .site-header .container.nav { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 14px 0; gap: 12px; }
  .brand { font-size: 1.2rem; }
  .brand small { font-size: 9px; letter-spacing: 0.18em; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 82%; max-width: 360px;
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 90px 36px 36px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 16px; }
  .menu-toggle { display: block; z-index: 110; padding: 8px 0 8px 8px; }
  .topbar { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { min-height: 78vh; }
}
@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .hero h1 { font-size: 2.2rem; }
  .gallery-item:nth-child(n) { grid-row: auto; }
  .gallery-grid { grid-auto-rows: 200px; }
}
