/* ============================================================
   SHARP & CO. — Global Styles
   style.css: variables, reset, navbar, footer, floating elements,
              custom cursor, loader, noise overlay
   ============================================================ */

/* ── Google Fonts import handled in HTML ── */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --black:        #0A0A0A;
  --black-soft:   #111111;
  --dark:         #1A1A1A;
  --dark-card:    #1E1E1E;
  --gold:         #FFD700;
  --gold-dark:    #C9A800;
  --silver:       #C0C0C0;
  --white:        #F5F5F5;
  --red-accent:   #FF3B3B;
  --green-live:   #00E676;
  --text-muted:   #888888;

  --font-heading: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-body:    'Inter', 'DM Sans', Arial, sans-serif;
  --font-script:  'Caveat', cursive;

  --border-radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-h: 72px;
  --section-pad: clamp(60px, 8vw, 120px);
}

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

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.touch-device {
  cursor: auto;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* ── Utility Classes ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-gold   { color: var(--gold); }
.text-silver { color: var(--silver); }
.text-muted  { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 20px;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}

/* ── Noise Overlay ──────────────────────────────────────────── */
#noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

#custom-cursor.cursor-hover {
  width: 54px;
  height: 54px;
}

#custom-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

#custom-cursor .scissors-blade-top {
  transform-origin: 50% 60%;
  transition: transform 0.15s ease;
}

#custom-cursor .scissors-blade-bottom {
  transform-origin: 50% 40%;
  transition: transform 0.15s ease;
}

#custom-cursor.open .scissors-blade-top {
  transform: rotate(-20deg);
}

#custom-cursor.open .scissors-blade-bottom {
  transform: rotate(20deg);
}

/* ── Page Loader ────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-pole {
  width: 48px;
  height: 140px;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  color: var(--white);
  display: flex;
  gap: 0;
}

.loader-text span {
  opacity: 0;
  animation: letterFadeIn 0.08s forwards;
}

@media (prefers-reduced-motion: no-preference) {
  .loader-text span:nth-child(1)  { animation-delay: 0.1s; }
  .loader-text span:nth-child(2)  { animation-delay: 0.18s; }
  .loader-text span:nth-child(3)  { animation-delay: 0.26s; }
  .loader-text span:nth-child(4)  { animation-delay: 0.34s; }
  .loader-text span:nth-child(5)  { animation-delay: 0.42s; }
  .loader-text span:nth-child(6)  { animation-delay: 0.50s; }
  .loader-text span:nth-child(7)  { animation-delay: 0.58s; }
  .loader-text span:nth-child(8)  { animation-delay: 0.66s; }
  .loader-text span:nth-child(9)  { animation-delay: 0.74s; }
  .loader-text span:nth-child(10) { animation-delay: 0.82s; }
}

@keyframes letterFadeIn {
  to { opacity: 1; }
}

/* Barber pole animation */
@keyframes poleStripe {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -60; }
}

.pole-stripe {
  animation: poleStripe 1s linear infinite;
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  transition: width 0.5s ease;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#navbar.scrolled::after {
  width: 100%;
}

.navbar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 10;
}

.navbar-logo svg {
  height: 44px;
  width: auto;
}

.navbar-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}

.navbar-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
}

/* Desktop Nav */
.navbar-links {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--gold);
}

.navbar-links a.active::before {
  content: '•';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.5rem;
}

.navbar-links .btn-nav {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border-radius: 0;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.navbar-links .btn-nav:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.navbar-links .btn-nav::after {
  display: none;
}

/* Hamburger */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: none;
  z-index: 10;
  padding: 4px 0;
}

@media (min-width: 1024px) {
  .navbar-hamburger {
    display: none;
  }
}

.navbar-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.navbar-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu-links a {
  font-family: var(--font-heading);
  font-size: 3rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--gold);
}

.mobile-menu-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width var(--transition);
}

.mobile-menu-links a:hover::after {
  width: 100%;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--black-soft);
  position: relative;
  z-index: 2;
}

footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand svg {
  height: 40px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

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

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav a::before {
  content: '→';
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact li a:hover {
  color: var(--gold);
}

/* Footer powered-by strip */
.footer-powered {
  border-top: 1px solid #1e1e1e;
  padding: 16px 0;
  text-align: center;
}

.footer-powered-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-powered-inner a {
  color: var(--gold);
  transition: color var(--transition);
}

.footer-powered-inner a:hover {
  color: var(--white);
}

.bl-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 3px;
}

.bl-monogram svg {
  width: 16px;
  height: 16px;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ── Floating Elements ──────────────────────────────────────── */

/* WhatsApp Button */
#whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: none;
}

#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

#whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

#whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease infinite;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  #whatsapp-btn {
    animation: waBounce 1s ease 2s both;
  }
  @keyframes waBounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-10px); }
    60%       { transform: translateY(-5px); }
  }
  @keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
  }
}

/* Sticky Prenota Button */
#sticky-prenota {
  position: fixed;
  bottom: 80px;
  left: 24px;
  z-index: 8000;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  border-radius: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background var(--transition);
  cursor: none;
}

#sticky-prenota.visible {
  transform: translateX(0);
}

#sticky-prenota:hover {
  background: var(--gold-dark);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 8000;
  width: 44px;
  height: 44px;
  background: var(--dark-card);
  border: 1px solid var(--gold);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--gold);
}

#back-to-top:hover svg {
  stroke: var(--black);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

/* ── Open/Closed Badge ──────────────────────────────────────── */
.open-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}

.open-closed-badge.open {
  background: rgba(0,230,118,0.12);
  color: var(--green-live);
  border: 1px solid rgba(0,230,118,0.3);
}

.open-closed-badge.closed {
  background: rgba(255,59,59,0.12);
  color: var(--red-accent);
  border: 1px solid rgba(255,59,59,0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .open-closed-badge.open .badge-dot {
    animation: pulseDot 1.5s ease infinite;
  }
  @keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
  }
}

/* ── Page Hero (shared) ─────────────────────────────────────── */
.page-hero {
  padding-top: var(--navbar-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,215,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

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

.page-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--silver);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 500px;
}

/* ── Marquee / Ticker ───────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.marquee-row:first-child {
  background: var(--gold);
}

.marquee-row:last-child {
  background: var(--dark);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-row:first-child .marquee-track {
  animation: marqueeLeft 28s linear infinite;
}

.marquee-row:last-child .marquee-track {
  animation: marqueeRight 24s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 4px;
}

.marquee-row:first-child .marquee-item { color: var(--black); }
.marquee-row:last-child  .marquee-item { color: var(--gold); }

.marquee-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  opacity: 0.8;
}

.marquee-row:first-child .marquee-sep svg { fill: var(--black); }
.marquee-row:last-child  .marquee-sep svg { fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* ── Sections z-index ───────────────────────────────────────── */
section, header, footer, main {
  position: relative;
  z-index: 2;
}
