/* Allineato a index.html: font locali, variabili, pulsanti header (nav + CTA) */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #FFFCF5;
  --color-text: #141A18;
  --color-primary: #CCFF66;
  --color-secondary: #053021;
  --color-line: #596963;
  --btn-primary-bg: #121517;
  --btn-primary-bg-hover: #1B2023;
  --btn-primary-text: #FFFCF5;
  --btn-secondary-bg: transparent;
  --btn-secondary-bg-hover: #F2F3F4;
  --btn-secondary-text: #121517;
  --btn-secondary-border: #121517;
  --btn-light-bg: #F3F1EC;
  --btn-light-bg-hover: #E9E6DE;
  --btn-light-text: #121517;
  --btn-light-border: #E1DDD2;
  --btn-radius: 14px;
  --btn-shadow: 0 10px 28px -14px rgba(18, 21, 23, 0.45);
  --btn-shadow-hover: 0 14px 34px -14px rgba(18, 21, 23, 0.65);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

body.sito-shell {
  font-family: 'Geist Mono', monospace;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-geist { font-family: 'Geist', sans-serif; }
.font-geist-mono { font-family: 'Geist Mono', monospace; }

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  position: relative;
  overflow: hidden;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}
.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2.5px solid var(--btn-secondary-border);
  position: relative;
  overflow: hidden;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}
.btn-light {
  background-color: var(--btn-light-bg);
  color: var(--btn-light-text);
  border: 1px solid var(--btn-light-border);
  position: relative;
  overflow: hidden;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-light:hover {
  background-color: var(--btn-light-bg-hover);
  color: var(--btn-light-text);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}
.btn-primary::before,
.btn-secondary::before,
.btn-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-light:hover::before {
  transform: translateX(120%);
}
.btn-primary:active,
.btn-secondary:active,
.btn-light:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px -14px rgba(18, 21, 23, 0.6);
}
.btn-pill {
  border-radius: var(--btn-radius);
  padding: 0.75rem 1.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

@media (max-width: 1279px) {
  #main-header {
    padding-right: 1.5rem !important;
    max-width: 100vw;
  }
}

/* Mobile menu — come index.html */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease-out,
              transform 0.3s ease-out;
}
#mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
}
#mobile-menu ul li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
#mobile-menu:not(.hidden) ul li {
  opacity: 1;
  transform: translateX(0);
}
#mobile-menu:not(.hidden) ul li:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu:not(.hidden) ul li:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu:not(.hidden) ul li:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu:not(.hidden) ul li:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu:not(.hidden) ul li:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu:not(.hidden) ul li:nth-child(6) { transition-delay: 0.3s; }

/* Modale prenotazione */
.booking-modal {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}
.booking-modal::backdrop {
  background: rgba(20, 26, 24, 0.72);
  backdrop-filter: blur(4px);
}
.booking-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(100% - 1.5rem, 32rem);
  height: min(100dvh - 1.5rem, 42rem);
  background-color: #FFFCF5;
  border: 1px solid #2A3135;
  border-radius: 1rem;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(20, 26, 24, 0.08);
  flex-shrink: 0;
}
.booking-modal-title {
  font-family: 'Geist', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #141A18;
  letter-spacing: -0.02em;
}
.booking-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #141A18;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.booking-modal-close:hover {
  background-color: rgba(20, 26, 24, 0.06);
}
.booking-modal-close:focus-visible {
  outline: 2px solid #141A18;
  outline-offset: 2px;
}
.booking-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #FFFCF5;
}
.booking-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 0;
}
.booking-modal-footer {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem 0.85rem;
  border-top: 1px solid rgba(20, 26, 24, 0.08);
  text-align: center;
}
.booking-modal-fallback {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: #3d4743;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}
.booking-modal-fallback:hover {
  color: #141A18;
}
.booking-modal-fallback:focus-visible {
  outline: 2px solid #141A18;
  outline-offset: 2px;
  border-radius: 2px;
}
html.booking-modal-open {
  overflow: hidden;
}
@media (max-width: 639px) {
  .booking-modal-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-modal[open] .booking-modal-panel {
    animation: booking-modal-in 0.32s var(--ease-out-expo);
  }
  .booking-modal[open]::backdrop {
    animation: booking-backdrop-in 0.28s ease;
  }
}
@keyframes booking-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes booking-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
