/* ═══════════════════════════════════════════════════════
   TIBURLAT — Stylesheet v4.1
   Palette: Nero profondo · Bianco caldo · Oro scuro #A8832A
   Font: Inter — Apple-style, system-grade
   Stile: Premium HORECA — elegante, fotografico
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

:root {
  /* Accento oro — più scuro per leggibilità su bianco */
  --oro:       #8C6A1A;
  --oro2:      #7A5C14;
  --oro3:      #634B0F;
  --oro-light: #F7EFD8;
  --oro-pale:  #FDFAF2;

  /* Alias per compatibilità col codice esistente */
  --blu:       #8C6A1A;
  --blu2:      #7A5C14;
  --blu3:      #634B0F;
  --blu-light: #F7EFD8;
  --blu-pale:  #FDFAF2;

  /* Oro chiaro per testi su sfondo scuro */
  --oro-light-text: #D4A830;

  /* Neri e grigi */
  --nero:      #0A0A08;
  --nero2:     #111110;
  --testo:     #0F0F0D;
  --testo2:    #3A3A35;
  --muted:     #6B6B62;
  --muted2:    #9B9B90;
  --bordo:     #E5E5DF;
  --bordo2:    #D1D1C8;

  /* Sfondi caldi */
  --bg:        #FEFEFE;
  --bg2:       #F9F9F5;
  --bg3:       #F2F2EC;

  --sans:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max:       1160px;
  --r:         8px;
  --r2:        12px;
  --r3:        16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px; font-weight: 400; line-height: 1.65;
  color: var(--testo); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

/* TIPOGRAFIA — tutto aumentato di un gradino */
.t-display { font-size: clamp(42px, 6vw, 80px);  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.t-h1      { font-size: clamp(36px, 5vw,  62px);  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.t-h2      { font-size: clamp(28px, 3.5vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.t-h3      { font-size: clamp(19px, 2vw,   23px); font-weight: 600; line-height: 1.3;  letter-spacing: -0.01em; }
.t-h4      { font-size: 17px; font-weight: 600; line-height: 1.4; }
.t-label   { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--oro); }

/* Testo paragrafo — dimensione unificata */
p, .t-body, .t-small, li, address {
  font-size: 17px;
  line-height: 1.8;
  color: var(--testo2);
}
p + p { margin-top: 16px; }
strong { font-weight: 600; color: var(--testo); }

/* LAYOUT */
.wrap      { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.wrap-text { max-width: 680px;      margin: 0 auto; padding: 0 48px; }
.sec    { padding: 96px 0; }
.sec-sm { padding: 56px 0; }
.sec-lg { padding: 128px 0; }
.sec-bg2  { background: var(--bg2); }
.sec-bg3  { background: var(--bg3); }
.sec-nero { background: var(--nero2); }
.sec-blu  { background: var(--blu); }

/* HEADER */
.hdr {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bordo);
  height: 60px;
}
.hdr-in {
  max-width: var(--max); margin: 0 auto; padding: 0 48px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.hdr-logo img { display: block; height: 32px; width: auto; }
.hdr-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.hdr-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.hdr-nav a:hover  { color: var(--testo); background: var(--bg3); }
.hdr-nav a.active { color: var(--testo); font-weight: 600; }
.hdr-cta {
  font-size: 14px; font-weight: 600; color: #fff; background: var(--blu);
  padding: 8px 18px; border-radius: var(--r);
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.hdr-cta:hover { background: var(--blu2); }
.hdr-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.hdr-burger span { display: block; width: 20px; height: 1.5px; background: var(--testo); border-radius: 2px; transition: .25s; }

/* MOBILE NAV */
.mob-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 199;
  flex-direction: column; padding: 24px 24px 40px;
  border-top: 1px solid var(--bordo); overflow-y: auto;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-size: 20px; font-weight: 500; color: var(--testo2);
  padding: 16px 0; border-bottom: 1px solid var(--bordo);
  transition: color .15s;
}
.mob-nav a:hover, .mob-nav a.active { color: var(--testo); }
.mob-nav-cta {
  margin-top: 24px; display: inline-flex; align-items: center;
  background: var(--blu); color: #fff !important;
  font-size: 16px !important; font-weight: 600 !important;
  padding: 14px 24px; border-radius: var(--r);
  border-bottom: none !important; width: fit-content;
}

/* BREADCRUMB */
.bc { background: var(--bg2); border-bottom: 1px solid var(--bordo); padding: 10px 0; }
.bc-in {
  max-width: var(--max); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; gap: 6px;
}
.bc-in a, .bc-in span { font-size: 13px; color: var(--muted); }
.bc-in a:hover { color: var(--blu); }
.bc-sep { color: var(--bordo2); }
.bc-in .current { color: var(--testo2); font-weight: 500; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 13px 28px; border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s;
  cursor: pointer; white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary { background: var(--oro); color: #fff; border-color: var(--oro); }
.btn-primary:hover { background: var(--oro2); box-shadow: 0 0 0 4px rgba(140,106,26,.2); }
.btn-dark    { background: var(--testo); color: #fff; border-color: var(--testo); }
.btn-dark:hover { background: var(--nero2); }
/* Outline → oro con testo oro, hover sfondo oro pieno */
.btn-outline { background: transparent; color: var(--oro); border-color: var(--oro); }
.btn-outline:hover { background: var(--oro); color: #fff; }
/* Outline white per sfondi scuri */
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: var(--r2); }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
}
.badge-blu  { background: var(--blu-light); color: var(--blu); }
.badge-gray { background: var(--bg3); color: var(--muted); }
.badge-dark { background: var(--testo); color: #fff; }

.section-label {
  font-size: 18px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--oro);
  margin-bottom: 14px; display: block;
}

/* STATS */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--bordo);
  border: 1px solid var(--bordo); border-radius: var(--r2); overflow: hidden;
}
.stat-cell { background: var(--bg); padding: 28px 24px; text-align: center; }
.stat-n {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--blu); line-height: 1; display: block; margin-bottom: 6px;
}
.stat-l { font-size: 13px; font-weight: 500; color: var(--muted); display: block; }

/* CTA SECTION */
.cta-sec { background: var(--testo); padding: 80px 0; text-align: center; }
.cta-sec-in { max-width: 540px; margin: 0 auto; padding: 0 48px; }
.cta-sec h2 { color: #fff; margin-bottom: 14px; }
.cta-sec p  { color: rgba(255,255,255,.55); margin-bottom: 32px; font-size: 17px; line-height: 1.7; }
.cta-sec-sub { display: block; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.3); transition: color .15s; }
.cta-sec-sub:hover { color: rgba(255,255,255,.6); }

/* FOOTER */
.ftr { background: var(--nero2); padding: 64px 0 32px; }
.ftr-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 48px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ftr-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: #fff; display: block; margin-bottom: 12px; }
.ftr-logo span { color: #C9A84C; }
.ftr-desc { font-size: 14px; color: rgba(255,255,255,.32); line-height: 1.7; max-width: 240px; }
.ftr-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 16px; }
.ftr-col li { margin-bottom: 9px; }
.ftr-col li a { font-size: 14px; color: rgba(255,255,255,.42); transition: color .15s; }
.ftr-col li a:hover { color: #fff; }
.ftr-col address { font-style: normal; font-size: 14px; color: rgba(255,255,255,.38); line-height: 1.8; }
.ftr-col address a { color: #C9A84C; transition: color .15s; }
.ftr-col address a:hover { color: #fff; }
.ftr-bottom {
  max-width: var(--max); margin: 0 auto; padding: 24px 48px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.ftr-copy { font-size: 12px; color: rgba(255,255,255,.18); }
.ftr-social { display: flex; gap: 12px; align-items: center; }
.ftr-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
  transition: background .15s, color .15s;
}
.ftr-social a:hover { background: rgba(255,255,255,.15); color: #fff; }
.ftr-social svg { flex-shrink: 0; }

/* WHATSAPP */
.wa { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-tip {
  background: var(--bg); border: 1px solid var(--bordo);
  border-radius: 12px 12px 2px 12px; padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(10,10,11,.1);
  font-size: 13px; color: var(--testo2); line-height: 1.5; max-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateY(6px) scale(.97); transition: opacity .2s, transform .2s;
}
.wa-tip strong { display: block; font-size: 12px; font-weight: 600; color: var(--testo); margin-bottom: 3px; }
.wa:hover .wa-tip { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.wa-btn {
  width: 52px; height: 52px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.3); transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(37,211,102,.45); }
.wa-btn svg { width: 26px; height: 26px; fill: #fff; }

/* FORM */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--testo2); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; font-family: var(--sans); font-size: 15px;
  color: var(--testo); background: var(--bg);
  border: 1.5px solid var(--bordo); border-radius: var(--r);
  padding: 11px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blu); box-shadow: 0 0 0 3px rgba(27,79,216,.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted2); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .wrap, .wrap-text, .hdr-in, .bc-in, .ftr-grid, .ftr-bottom, .cta-sec-in { padding-left: 32px; padding-right: 32px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap, .wrap-text, .hdr-in, .bc-in, .ftr-grid, .ftr-bottom, .cta-sec-in { padding-left: 20px; padding-right: 20px; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: flex; }
  .sec { padding: 64px 0; }
  .sec-lg { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .ftr-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .wa { bottom: 16px; right: 16px; }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px;
  max-width: 480px; z-index: 998;
  background: var(--nero2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r3);
  padding: 24px 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-title {
  font-size: 15px; font-weight: 700;
  color: #fff; margin-bottom: 8px; display: block;
}
.cookie-banner p {
  font-size: 13px; color: rgba(255,255,255,.55);
  line-height: 1.65; margin-bottom: 20px;
}
.cookie-banner p a { color: #6B8EF0; }
.cookie-banner-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r);
  cursor: pointer; transition: background .15s, border-color .15s;
  white-space: nowrap; letter-spacing: -.01em;
}
.cookie-btn-accept {
  background: var(--blu); color: #fff; border: 1.5px solid var(--blu);
}
.cookie-btn-accept:hover { background: var(--blu2); }
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,.5);
  border: 1.5px solid rgba(255,255,255,.15);
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.75); }
.cookie-btn-prefs {
  background: transparent; color: rgba(255,255,255,.4);
  border: 1.5px solid transparent; padding: 9px 8px;
  font-size: 12px; text-decoration: underline; text-underline-offset: 2px;
}
.cookie-btn-prefs:hover { color: rgba(255,255,255,.7); }

/* PANNELLO PREFERENZE */
.cookie-preferences {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.cookie-preferences.visible {
  opacity: 1; pointer-events: auto;
}
.cookie-pref-panel {
  background: var(--bg);
  border-radius: var(--r3);
  padding: 36px 32px;
  max-width: 500px; width: 90%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.cookie-pref-title {
  font-size: 20px; font-weight: 700;
  color: var(--testo); margin-bottom: 8px; display: block;
}
.cookie-pref-desc {
  font-size: 14px; color: var(--muted);
  margin-bottom: 28px; line-height: 1.65;
}
.cookie-pref-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--bordo);
}
.cookie-pref-item:last-of-type { border-bottom: none; }
.cookie-pref-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; margin-bottom: 6px;
}
.cookie-pref-row h4 { font-size: 14px; font-weight: 600; color: var(--testo); }
.cookie-pref-item p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Toggle switch */
.toggle {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bordo2); border-radius: 100px;
  cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute; width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--blu); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle input:disabled + .toggle-slider { opacity: .5; cursor: not-allowed; }

.cookie-pref-actions {
  display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap;
}

@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .cookie-pref-panel { padding: 24px 20px; }
}

/* ── ORO SU SCURO — variabile per testi dorati su sfondi neri ── */
/* Usato inline come style="color:var(--oro-light-text)" */
/* Già definito in :root come --oro-light-text: #D4A830 */

/* Patch globale: tutte le occorrenze di #6B8EF0 nei data-style diventano oro chiaro */
[style*="color:#6B8EF0"] { color: #D4A830 !important; }
[style*="color: #6B8EF0"] { color: #D4A830 !important; }
