/*
Theme Name: Riviera
Theme URI: https://rivieranoleggio.com
Author: Riviera Noleggio
Author URI: https://rivieranoleggio.com
Description: Tema premium per autonoleggio Riviera Noleggio. Design elegante in oro e nero con supporto WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://rivieranoleggio.com/licenza
Text Domain: riviera
Tags: e-commerce, woocommerce, dark, gold, premium, autonoleggio
*/

/* ============================================================
   DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --black:      #0B0B0F;
  --gold:       #C9A84C;
  --gold-dark:  #A8872E;
  --gold-light: #DFC070;
  --white:      #FFFFFF;
  --gray-50:    #FAFAFA;
  --gray-100:   #F5F5F4;
  --gray-200:   #E8E8E6;
  --gray-400:   #ABABAB;
  --gray-600:   #6B6B69;
  --gray-800:   #2A2A28;

  /* Semantici */
  --color-bg:        var(--white);
  --color-text:      var(--gray-800);
  --color-text-muted:var(--gray-600);
  --color-border:    var(--gray-200);
  --color-accent:    var(--gold);
  --color-accent-dark: var(--gold-dark);

  /* Tipografia */
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* Radius */
  --radius-btn:     6px;
  --radius-card:    12px;
  --radius-section: 20px;

  /* Ombre */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  /* Transizioni */
  --transition: 250ms ease;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 2rem);

  /* Header */
  --header-h: 64px;
}

/* ============================================================
   MODERN RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================
   TIPOGRAFIA BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

h6 {
  font-size: 1rem;
  font-weight: 700;
}

p {
  line-height: 1.7;
  color: var(--color-text);
}

p + p {
  margin-top: 1em;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.875rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1440px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--dark {
  background-color: var(--black);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--white);
}

.section--dark p {
  color: var(--gray-400);
}

.section--gray {
  background-color: var(--gray-50);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--color-text-muted); }
.text-white  { color: var(--white); }
.text-black  { color: var(--black); }

.bg-dark  { background-color: var(--black); }
.bg-light { background-color: var(--gray-50); }
.bg-white { background-color: var(--white); }
.bg-gold  { background-color: var(--gold); }

/* ============================================================
   SECTION TITLE — con linea dorata
   ============================================================ */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   BOTTONI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

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

/* Primary — sfondo oro, testo nero */
.btn-primary {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 6px 24px rgba(201,168,76,.40);
  transform: translateY(-1px);
  color: var(--black);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201,168,76,.20);
}

/* Outline — bordo oro, sfondo trasparente */
.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

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

/* Ghost — nessun bordo, testo oro */
.btn-ghost {
  background-color: transparent;
  color: var(--gold);
  border-color: transparent;
  padding-inline: 0.5rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--gold-dark);
}

/* Varianti colore */
.btn-dark {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background-color: var(--gray-800);
  color: var(--white);
  transform: translateY(-1px);
}

/* Dimensioni */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* Outline su sfondo scuro */
.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

/* ============================================================
   BADGE / PILL
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-gold {
  background-color: rgba(201,168,76,.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
}

.badge-dark {
  background-color: var(--black);
  color: var(--white);
}

.badge-gray {
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.badge-white {
  background-color: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}

/* Categoria auto */
.badge-suv     { background-color: #1a3a2a; color: #4eca8b; border: 1px solid #2a5a3a; }
.badge-berlina { background-color: #1a2a3a; color: #4a8eca; border: 1px solid #2a3a5a; }
.badge-cabrio  { background-color: #3a1a2a; color: #ca4a8e; border: 1px solid #5a2a3a; }
.badge-luxury  { background-color: rgba(201,168,76,.12); color: var(--gold); border: 1px solid rgba(201,168,76,.3); }
.badge-van     { background-color: #2a2a1a; color: #caca4a; border: 1px solid #3a3a2a; }

/* ============================================================
   CARD BASE
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: var(--gray-100);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem;
}

.card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Card dark */
.card--dark {
  background: var(--gray-800);
}

.card--dark .card__title { color: var(--white); }
.card--dark .card__text  { color: var(--gray-400); }

/* ============================================================
   FORM INPUTS — stile premium minimal
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-200);
  border-radius: 0;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-bottom-color: var(--gold);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control--filled {
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-btn);
  background: var(--gray-50);
}

.form-control--filled:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-control--dark {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.25);
}

.form-control--dark::placeholder {
  color: rgba(255,255,255,.4);
}

.form-control--dark:focus {
  border-bottom-color: var(--gold);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  
  padding-top: 0.5rem;
}

textarea.form-control--filled {
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.25rem;
}

/* ============================================================
   FILTER TAGS
   ============================================================ */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-tag.active,
.filter-tag[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background-color: transparent;
  transition: background-color var(--transition),
              box-shadow var(--transition),
              backdrop-filter var(--transition);
}

.site-header.scrolled {
  background-color: var(--black);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  backdrop-filter: none;
}

.site-header.header--solid {
  background-color: var(--black);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}

.site-logo__main {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.site-logo__sub {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Nav desktop */
.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav ul li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.site-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 1px;
}

.site-nav ul li a:hover,
.site-nav ul li a:focus-visible,
.site-nav ul li.current-menu-item > a,
.site-nav ul li.current_page_item > a {
  color: var(--gold);
}

.site-nav ul li a:hover::after,
.site-nav ul li.current-menu-item > a::after,
.site-nav ul li.current_page_item > a::after {
  transform: scaleX(1);
}

/* Sub-menu */
.site-nav ul li {
  position: relative;
}

.site-nav ul li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-card);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
}

.site-nav ul li:hover > .sub-menu,
.site-nav ul li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav ul li .sub-menu li a {
  display: block;
  padding: 0.6rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,.75);
}

.site-nav ul li .sub-menu li a::after { display: none; }

.site-nav ul li .sub-menu li a:hover {
  background: rgba(201,168,76,.1);
  color: var(--gold);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

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

.header-phone:hover {
  color: var(--gold);
}

.header-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

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

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow-y: auto;
}

#mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__nav ul li a {
  display: block;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition), padding-left var(--transition);
  letter-spacing: -0.01em;
}

.mobile-menu__nav ul li a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.mobile-menu__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.mobile-menu__phone svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-col__logo span {
  color: var(--gold);
}

.footer-col__payoff {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

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

.footer-contact-item a {
  color: var(--gray-400);
  transition: color var(--transition);
}

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

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-hours-row:last-child {
  border-bottom: none;
}

.footer-hours-row .day {
  color: var(--gray-400);
  font-weight: 500;
}

.footer-hours-row .time {
  color: var(--white);
  font-weight: 600;
}

.footer-hours-row .closed {
  color: var(--gray-600);
}

.footer-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-top: 0.875rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-maps-link:hover {
  color: var(--gold-light);
}

.footer-maps-link svg {
  width: 14px;
  height: 14px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--gray-400);
  transition: all var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(201,168,76,.1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Legal bar */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.775rem;
  color: var(--gray-600);
}

.footer-legal__copy {
  line-height: 1.6;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-legal__links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal__links a:hover {
  color: var(--gray-400);
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: clamp(1.25rem, 4vw, 2rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* Nascondi FAB se bottom-nav è visibile */
@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: calc(60px + 1rem);
  }
}

/* ============================================================
   BOTTOM NAV MOBILE
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background-color: var(--black);
  border-top: 1px solid rgba(255,255,255,.1);
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--gray-600);
  transition: color var(--transition);
  padding: 0.5rem;
}

.bottom-nav__item:hover,
.bottom-nav__item.active {
  color: var(--gold);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Offset page content per bottom-nav */
body.has-bottom-nav {
  padding-bottom: 60px;
}

/* ============================================================
   PAGE HERO — banner scuro con overlay
   ============================================================ */
.page-hero {
  position: relative;
  
  display: flex;
  align-items: flex-start;
  background-color: var(--black);
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,11,15,.85) 0%,
    rgba(11,11,15,.55) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 1rem 0 0;
  width: 100%;
}

.page-hero__title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero__subtitle {
  color: var(--gray-400);
  font-size: 1rem;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.page-content--narrow {
  max-width: 800px;
  margin-inline: auto;
}

/* Stili editoriali del content */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--gold-dark);
}

.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.entry-content blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-800);
  margin: 0;
}

.entry-content img {
  border-radius: var(--radius-card);
  margin-block: 1.5em;
  width: 100%;
  height: auto;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-400);
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb__list li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}

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

.breadcrumb__list li.current {
  color: var(--gray-800);
}

.breadcrumb__sep {
  color: var(--gray-200);
  user-select: none;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: color var(--transition);
}

.faq-question:hover,
.faq-item.open .faq-question {
  color: var(--gold);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.faq-icon-svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--gray-400);
}

.faq-item.open .faq-icon-svg {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms ease, padding var(--transition);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer__inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.faq-answer__inner p + p {
  margin-top: 0.75em;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.star-icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: var(--gold);
}

.star-icon.empty {
  color: var(--gray-200);
  fill: var(--gray-200);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-200);
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-avatar svg {
  width: 44px;
  height: 44px;
  color: var(--gray-400);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.125rem;
}

.testimonial-meta {
  font-size: 0.775rem;
  color: var(--gray-400);
}

/* ============================================================
   HERO HOMEPAGE (struttura base)
   ============================================================ */
.hero {
  position: relative;
  
  display: flex;
  align-items: center;
  background-color: var(--black);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11,11,15,.88) 0%,
    rgba(11,11,15,.55) 60%,
    rgba(11,11,15,.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__title {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__subtitle {
  color: rgba(255,255,255,.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   BOOKING WIDGET (barra di ricerca)
   ============================================================ */
.booking-bar {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .booking-bar {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .booking-bar {
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
  }
}

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ============================================================
   DIVIDER / DECORATORI
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin-block: 2rem;
}

.divider--dark {
  border-top-color: rgba(255,255,255,.08);
}

.gold-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up--delay-1 { transition-delay: 100ms; }
.fade-in-up--delay-2 { transition-delay: 200ms; }
.fade-in-up--delay-3 { transition-delay: 300ms; }
.fade-in-up--delay-4 { transition-delay: 400ms; }

/* ============================================================
   UTILITY CLASSI AGGIUNTIVE
   ============================================================ */
.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;
}

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mt-8  { margin-top: 4rem; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }
.mb-8  { margin-bottom: 4rem; }

.hidden { display: none !important; }
.block  { display: block; }
.inline-flex { display: inline-flex; }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

/* Mobile: <768px */
@media (max-width: 767px) {
  :root {
    --header-h: 56px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-start;
    
  }

  .hero__content {
    padding-bottom: 3rem;
  }

  .booking-bar {
    grid-template-columns: 1fr;
  }

  .site-nav { display: none; }
  .header-phone { display: none; }

  .section {
    padding-block: 2rem;
  }

  .stats-section,
  .section-stats {
    padding-block: 2rem;
  }

  .site-footer {
    padding-top: 2rem;
  }

  .footer-grid {
    padding-bottom: 2rem;
  }

  .page-content--narrow {
    max-width: 100%;
  }
}

/* Tablet: 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-block: 3rem;
  }

  .stats-section,
  .section-stats {
    padding-block: 2.5rem;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-grid {
    padding-bottom: 3rem;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .stats-section,
  .section-stats {
    padding-block: 2.5rem;
  }
}
