/* ==========================================================================
   Andrea Di Biccari — Atelier Italiano
   Monochromatic Luxury Theme
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Monochromatic Palette (Home) */
  --black:         #0a0a0a;
  --black-warm:    #101010;
  --charcoal:      #1a1a1a;
  --charcoal-mid:  #242424;
  --grey-dark:     #3a3a3a;
  --grey:          #6b6b6b;
  --grey-light:    #999;
  --silver:        #b8b8b8;
  --cream:         #e8e8e8;
  --white:         #fff;
  --danger:        #c0392b;
  --success:       #27ae60;

  /* Accent = white for home (overridden in barberia) */
  --accent:        #fff;
  --accent-soft:   #d0d0d0;
  --accent-muted:  #888;

  /* Text */
  --text-primary:  #d4d4d4;
  --text-muted:    #6b6b6b;
  --text-faint:    #444;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.07);
  --border-accent: rgba(255,255,255,0.2);

  /* Typography */
  --font-display: 'Bodoni Moda', 'Georgia', serif;
  --font-body:    'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-py:    clamp(64px, 7.5vw, 110px);
  --section-px:    clamp(22px, 5vw, 56px);
  --container-max: 1200px;

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:  0.25s;
  --t-med:   0.5s;
  --t-slow:  0.8s;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NO scroll-behavior: smooth here — handled in JS to avoid jank */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
  hyphens: none;
}

h2 {
  font-size: clamp(26px, 4.2vw, 46px);
  margin-bottom: 0.55em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 560px) {
  h2 {
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: 0.02em;
    line-height: 1.18;
  }
}

p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 0;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
a:hover, a:focus {
  color: var(--white);
  text-decoration: none;
}

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

::selection {
  background: var(--white);
  color: var(--black);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.container-custom {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.text-center { text-align: center; }

/* Section label with dash(es) */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
  position: relative;
  padding-left: 40px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--accent-soft);
}
/* Centered variant: symmetric dashes on both sides */
.text-center .section-label {
  padding-left: 40px;
  padding-right: 40px;
}
.text-center .section-label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--accent-soft);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--border-accent);
  margin: 22px auto 40px;
  border: none;
}

/* ==========================================================================
   4. Scroll Reveal  (GPU-friendly)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity var(--t-slow) var(--ease-out-expo),
              transform var(--t-slow) var(--ease-out-expo);
}
/* Il contenuto resta leggibile se JavaScript non viene caricato. */
.reveal.reveal-pending {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* ==========================================================================
   5. Subtle grain overlay  (hidden on mobile for perf)
   ========================================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  transform: translateZ(0);             /* own compositing layer */
}
@media (max-width: 768px) {
  body::after { display: none; }        /* kill grain on mobile */
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.navbar-adb {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--t-med) ease,
              padding var(--t-med) ease,
              box-shadow var(--t-med) ease;
  /* Nota: NIENTE transform qui. Un transform sul navbar creerebbe un
     containing block per i figli position:fixed (comportamento W3C
     rispettato da iOS Safari), ancorando il menu mobile alla striscia
     del navbar invece che al viewport. */
}
.navbar-adb.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.navbar-brand-img {
  display: block;
  height: 30px;
  width: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.navbar-adb.logo-visible .navbar-brand-img {
  opacity: 0.9;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar-adb.logo-visible .navbar-brand-img:hover { opacity: 1; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width var(--t-med) var(--ease-out-expo);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

@media (max-width: 992px) {
  .nav-links { gap: 24px; }
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 32px; height: 24px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--white);
  transition: all var(--t-fast) ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;              /* fallback per Safari vecchio */
    height: 100dvh;             /* dynamic viewport: include bottom bar iOS */
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-med) ease, visibility 0s var(--t-med);
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 80px) 24px
             calc(env(safe-area-inset-bottom) + 40px);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition-delay: 0s;
  }
  .nav-links li { justify-content: center; }
  .nav-links a {
    font-size: 16px;            /* più leggibile, tap target maggiore */
    letter-spacing: 0.22em;
    padding: 6px 4px;
    color: var(--cream);
  }
  .nav-links .back-link {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    margin-left: 0;
    width: 120px;
    justify-content: center;
  }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(30%);
  transform: translateZ(0);            /* GPU layer for img */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.45) 0%,
    rgba(10,10,10,0.15) 40%,
    rgba(10,10,10,0.55) 75%,
    rgba(10,10,10,0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-logo {
  width: clamp(200px, 32vw, 380px);
  margin: 0 auto 26px;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: heroIn 1.2s var(--ease-out-expo) 0.3s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
  padding-left: 0.35em;   /* optical balance for tracked text */
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out-expo) 0.6s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.25em;
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroScrollIn 1.2s var(--ease-out-expo) 1.2s forwards;
}
@keyframes heroScrollIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll a:hover { color: var(--white); }
.hero-scroll svg {
  width: 16px; height: 16px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes heroIn {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   8. About
   ========================================================================== */
.about {
  padding: var(--section-py) 0;
  background: var(--black);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image {
  position: relative;
  overflow: visible;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--t-slow) ease;
}
.about-image:hover img { filter: grayscale(0%); }
.about-image::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 1px solid var(--border-accent);
  z-index: -1;
  transition: all var(--t-med) var(--ease-out-expo);
}
.about-image:hover::after {
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p  { margin-bottom: 20px; }

.about-butterfly {
  margin-top: 30px;
  width: 50px;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { max-width: 400px; margin: 0 auto; }
  .about-image::after { display: none; }
}

/* Barberia: tighter, centered intro block */
.about-intro { padding-bottom: calc(var(--section-py) / 2); }
.about-intro-inner { max-width: 640px; margin: 0 auto; }
.about-intro-inner h2 { margin-bottom: 20px; }

/* ==========================================================================
   9. Gallery
   ========================================================================== */
.gallery {
  padding: var(--section-py) 0;
  background: var(--black-warm);
}

.gallery-header {
  margin-bottom: 36px;
}
.gallery-header h2 {
  color: var(--white);
  margin-bottom: 0;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.8);
  transition: transform var(--t-slow) var(--ease-out-expo),
              filter var(--t-med) ease;
  transform: translateZ(0);            /* GPU */
}
.gallery-item:hover img {
  transform: scale(1.05) translateZ(0);
  filter: grayscale(0%) brightness(1);
}

/* Barberia CTA tile */
.gallery-barberia { grid-column: span 1; }
.gallery-barberia img {
  filter: grayscale(40%) brightness(0.55);
}
.gallery-barberia:hover img {
  filter: grayscale(0%) brightness(0.75);
  transform: scale(1.04) translateZ(0);
}
.gallery-barberia-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0) 30%,
    rgba(10,10,10,0.35) 60%,
    rgba(10,10,10,0.85) 100%
  );
  pointer-events: none;
}
.gb-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  transition: gap var(--t-med) ease, border-color var(--t-med) ease;
}
.gb-cta svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out-expo); }
.gallery-barberia:hover .gb-cta { gap: 16px; border-color: var(--white); }
.gallery-barberia:hover .gb-cta svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .gallery-grid { gap: 3px; }
}

/* ==========================================================================
   10. Prices
   ========================================================================== */
.prices {
  padding: var(--section-py) 0;
  background-color: var(--charcoal);
  background-image: url('../img/ardesia_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;       /* avoid fixed-bg jank on mobile */
  position: relative;
}
.prices::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.84);
}
.prices .container-custom {
  position: relative;
  z-index: 1;
}

.price-items {
  max-width: 720px;
  margin: 0 auto;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast) ease, padding var(--t-fast) ease;
}
.price-row:first-child { border-top: 1px solid var(--border-subtle); }
.price-row:last-child  { border-bottom: none; }
.price-row:hover {
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.price-name {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--cream);
  min-width: 0;
}
.price-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Dotted leader retained but decorative only — grid handles alignment */
.price-dots { display: none; }

.price-value {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 400;
  font-style: normal;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 520px) {
  .price-row {
    padding: 18px 0;
    column-gap: 16px;
  }
  .price-row:hover { padding-left: 6px; padding-right: 6px; }
  .price-name { font-size: 14px; }
  .price-value { font-size: 16px; }
  .price-desc { font-size: 10px; letter-spacing: 0.18em; margin-top: 6px; }
}

/* ==========================================================================
   11. Buttons
   ========================================================================== */
.btn-primary-custom {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: all var(--t-fast) ease;
}
.btn-primary-custom:hover {
  background: var(--cream);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.12);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 32px;
  cursor: pointer;
  transition: all var(--t-fast) ease;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ==========================================================================
   12. Booking Form
   ========================================================================== */
.booking {
  padding: var(--section-py) 0;
  background: var(--black);
}

.booking-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row-custom.full {
  grid-template-columns: 1fr;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Shared input styles — applies to both raw inputs and .form-control */
.form-group input:not([type="submit"]),
.form-group textarea,
.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream);
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  outline: none;
  box-shadow: none;
  height: auto;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}
.form-group input:focus,
.form-group textarea:focus,
.form-control:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
  background: var(--charcoal);
  color: var(--cream);
}

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

.form-captcha {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.form-submit {
  text-align: center;
  margin-top: 10px;
}

.form-privacy {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Messages */
.form-messages { margin-bottom: 20px; text-align: center; }
.form-messages .alert-success {
  padding: 16px;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.25);
  color: var(--success);
  font-size: 14px;
}
.form-messages .alert-danger {
  padding: 16px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: var(--danger);
  font-size: 14px;
}

/* Validator.js compat */
.help-block.with-errors {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  list-style: none;
}
.help-block.with-errors ul { list-style: none; padding: 0; margin: 0; }
.has-error input,
.has-error textarea,
.has-error .form-control {
  border-color: var(--danger) !important;
}

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

/* ==========================================================================
   13. Contact
   ========================================================================== */
.contact {
  padding: var(--section-py) 0;
  background: var(--black-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 10px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-item svg {
  width: 20px; height: 20px;
  color: var(--accent-soft);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item .info-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info-item .info-value {
  font-size: 16px;
  color: var(--cream);
}
.contact-info-item a.info-value {
  color: var(--cream);
  transition: color var(--t-fast) ease;
}
.contact-info-item a.info-value:hover {
  color: var(--white);
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border-accent);
  color: var(--accent-soft);
  transition: all var(--t-fast) ease;
}
.contact-social a:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.contact-social a svg { width: 18px; height: 18px; }

.contact-note {
  margin-top: 28px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}

/* Map */
.contact-map {
  position: relative;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border-accent);
  background: #1b1b1b;
  overflow: hidden;
}
.contact-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.55);
}
.contact-map #map { width: 100%; height: 100%; min-height: 360px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map,
  .contact-map #map { min-height: 280px; }
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--black);
  text-align: center;
}
.footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--white); }

/* ==========================================================================
   15. Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  transform: translateZ(0);
}
.cookie-banner a { color: var(--accent-soft); text-decoration: underline; }
.cookie-btn {
  background: none; border: none;
  color: var(--accent-soft);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  padding: 0 4px;
}

/* ==========================================================================
   16. Back-link (barberia → home)
   ========================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--text-muted);
}
.back-link:hover { color: var(--accent-soft); }
.back-link svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);     /* point left (← toward Hair Salon) */
  flex-shrink: 0;
}
/* Back-link inside navbar: matches nav-links size, visually separated */
.nav-links .back-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid var(--border-subtle);
}
.nav-links .back-link::after { display: none; }

/* ==========================================================================
   17. OK page
   ========================================================================== */
.ok-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}
.ok-page p { color: var(--text-muted); }

/* ==========================================================================
   18. Barberia overrides  (blue accent)
   ========================================================================== */
.page-barberia {
  --accent:       #6a9ec7;
  --accent-soft:  #82b3d6;
  --accent-muted: #4d7ea5;
  --border-accent: rgba(106,158,199,0.25);
}

/* Specifics for barberia that reference accent */
.page-barberia .section-label { color: var(--accent-soft); }
.page-barberia .section-label::before { background: var(--accent-soft); }
.page-barberia .hero-tagline { color: var(--accent-soft); }

.page-barberia .btn-primary-custom {
  background: var(--accent);
  color: var(--white);
}
.page-barberia .btn-primary-custom:hover {
  background: var(--accent-soft);
  box-shadow: 0 6px 24px rgba(106,158,199,0.2);
}

.page-barberia .btn-outline {
  color: var(--accent-soft);
  border-color: var(--accent);
}
.page-barberia .btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.page-barberia .price-value { color: var(--accent-soft); }
.page-barberia .price-dots { border-bottom-color: rgba(106,158,199,0.2); }
.page-barberia .divider { background: var(--accent); opacity: 0.4; }

.page-barberia a { color: var(--accent-soft); }
.page-barberia a:hover { color: var(--accent); }

.page-barberia .contact-social a {
  border-color: rgba(106,158,199,0.3);
  color: var(--accent-soft);
}
.page-barberia .contact-social a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.page-barberia .contact-info-item svg { color: var(--accent-soft); }
.page-barberia .contact-info-item a.info-value:hover { color: var(--accent-soft); }

.page-barberia .form-group input:focus,
.page-barberia .form-group textarea:focus,
.page-barberia .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106,158,199,0.08);
}

.page-barberia .nav-links a:hover::after,
.page-barberia .nav-links a.active::after {
  background: var(--accent-soft);
}

.page-barberia .footer a:hover { color: var(--accent-soft); }
.page-barberia .hero-scroll a:hover { color: var(--accent-soft); }

/* Hero barberia: nero pieno del logo + spotlight radiale discreto */
.page-barberia .hero {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, #161616 0%, #0a0a0a 55%, #050505 100%);
}
.page-barberia .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.page-barberia .hero-logo {
  filter: drop-shadow(0 0 60px rgba(0,0,0,0.8));
}
