/* ============================================================
   TOPNAUTICAWEB – Main Stylesheet
   Nautical theme: Navy · Gold · White
   Fonts: Playfair Display + Raleway
   ============================================================ */

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --navy-900:  #061525;
  --navy-800:  #0b1f38;
  --navy-700:  #0d2d54;
  --navy-600:  #163d6e;
  --navy-500:  #1b5099;
  --ocean:     #1a6fa8;
  --sky:       #4a9fd5;
  --gold-700:  #a07c2a;
  --gold:      #c8a84b;
  --gold-300:  #e8c96a;
  --white:     #ffffff;
  --off-white: #f0f4f8;
  --gray-100:  #eef1f5;
  --gray-200:  #dde3ec;
  --gray-400:  #9baab8;
  --gray-600:  #4a5568;
  --text:      #111827;
  --text-mid:  #374151;
  --text-light:#6b7280;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
  --radius:    10px;
  --radius-lg: 18px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TOP BAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--navy-900);
  color: var(--gray-400);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200,168,75,.15);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gray-400); transition: color var(--transition); }
.topbar a:hover { color: var(--gold); }
.topbar-social { margin-left: auto; display: flex; gap: 12px; font-size: 1rem; }

.logo a { display: flex; align-items: center; height: 100%; }
.logo-img {
    max-height: 60px; /* Regola questo valore per fare il logo più grande o più piccolo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.05); /* Piccolo effetto zoom al passaggio del mouse */ }


/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-800);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  transition: background var(--transition);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
}
.logo-anchor {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold);
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}

/* NAV LIST */
.main-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list li { position: relative; }
.nav-link {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(200,168,75,.12);
}
.nav-link .arrow { font-size: .65rem; opacity: .7; }

/* DROPDOWN */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200,168,75,.2);
  overflow: hidden;
  z-index: 999;
}
.dropdown li a {
  display: block;
  padding: 11px 20px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--transition), color var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: rgba(200,168,75,.18); color: var(--gold-300); }

.has-dropdown:hover .dropdown { display: block; }

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6,21,37,.85) 0%, rgba(11,31,56,.7) 60%, rgba(26,111,168,.4) 100%),
    url('../../img/home/hero-home.jpg') center/cover no-repeat;
}
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f0f4f8' d='M0,64 C360,0 1080,80 1440,32 L1440,80 L0,80 Z'/%3E%3C/svg%3E") bottom/cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,.18);
  border: 1px solid rgba(200,168,75,.4);
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-300);
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  position: absolute;
  bottom: 200px;
  right: 80px;
  display: flex;
  gap: 0;
  z-index: 2;
}
.stat-card {
  background: rgba(11,31,56,.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200,168,75,.2);
  padding: 20px 28px;
  text-align: center;
  border-left: none;
}
.stat-card:first-child { border-left: 1px solid rgba(200,168,75,.2); border-radius: var(--radius) 0 0 var(--radius); }
.stat-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
  color: var(--navy-900);
  box-shadow: 0 4px 20px rgba(200,168,75,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,168,75,.55);
}
.btn-outline-white {
  background: white;
  color: black;
  border: 2px solid rgb(0, 0, 0);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: black;
}
.btn-navy {
  background: var(--navy-700);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
}
.btn-outline-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: .82rem; }
.btn-wa {
  background: #25d366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  transition: all var(--transition);
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }

/* ─── SECTION LAYOUT ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy-800); color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.65); }
.divider-gold {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-300));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ─── CATEGORIE GRID ────────────────────────────────────────── */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.categoria-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.categoria-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-md); }
.categoria-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.categoria-card:hover img { transform: scale(1.08); }
.categoria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,21,37,.78) 0%, rgba(6,21,37,.15) 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  transition: background var(--transition);
}
.categoria-card:hover .categoria-overlay { background: linear-gradient(0deg, rgba(6,21,37,.88) 0%, rgba(26,111,168,.25) 100%); }
.categoria-name {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px;
  border-radius: 10px;
}
.categoria-count {
  font-size: .75rem;
  color: var(--gold-300);
  font-weight: 600;
  margin-top: 2px;
}

/* ─── BOAT CARDS ────────────────────────────────────────────── */
.barche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.barca-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.barca-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.barca-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.barca-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.barca-card:hover .barca-card-img img { transform: scale(1.07); }
.barca-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy-900);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.barca-card-body { padding: 20px 22px; }
.barca-card-cat {
  font-size: .75rem;
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.barca-card h3 {
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 12px;
  line-height: 1.35;
}
.barca-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.barca-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}
.barca-spec-icon { font-size: .95rem; }
.barca-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.barca-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-700);
}
.barca-price.trattativa { font-size: 1rem; color: var(--text-light); }

/* ─── CTA BANNER ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '⚓';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  opacity: .04;
  pointer-events: none;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.7); margin-top: 8px; max-width: 480px; }

/* ─── PAGE HERO (interni) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(200,168,75,0.15)'/%3E%3C/svg%3E");
}
.page-hero h1 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p { position: relative; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold-300); }
.breadcrumb-sep { opacity: .5; }

/* ─── SERVIZI ───────────────────────────────────────────────── */
.servizio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}
.servizio-row:last-child { border-bottom: none; }
.servizio-row.reverse .servizio-img { order: 2; }
.servizio-row.reverse .servizio-body { order: 1; }
.servizio-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  object-fit: cover;
}
.servizio-tag {
  display: inline-block;
  background: rgba(200,168,75,.12);
  color: var(--gold-700);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(200,168,75,.3);
  margin-bottom: 16px;
}
.servizio-body h2 {
  font-size: 2rem;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.servizio-body p { color: var(--text-mid); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.servizio-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── CHI SIAMO ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrapper { position: relative; }
.about-img-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-img-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.about-img-badge .lab { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); color: var(--navy-800); margin-bottom: 20px; }
.about-body p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.about-feature-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.about-feature h4 { font-size: .88rem; font-weight: 700; font-family: 'Raleway', sans-serif; margin-bottom: 4px; }
.about-feature p { font-size: .82rem; color: var(--text-light); margin: 0; }

/* ─── CATALOGO ──────────────────────────────────────────────── */
.catalogo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 28px 24px;
  position: sticky;
  top: 90px;
}
.filter-title {
  font-size: 1.1rem;
  color: var(--navy-800);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  font-family: 'Playfair Display', serif;
}
.filter-group { margin-bottom: 24px; }
.filter-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 10px;
}
.filter-panel select,
.filter-panel input[type="number"],
.filter-panel input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition);
  appearance: none;
}
.filter-panel select:focus,
.filter-panel input:focus {
  outline: none;
  border-color: var(--ocean);
  background: var(--white);
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-actions { display: flex; gap: 10px; flex-direction: column; margin-top: 8px; }

.catalogo-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { color: var(--text-mid); font-size: .9rem; }
.results-count strong { color: var(--navy-800); }

/* ─── DETTAGLIO BARCA ───────────────────────────────────────── */
.barca-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.gallery-main img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: .65;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.barca-detail-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.sidebar-header {
  background: var(--navy-700);
  padding: 24px;
  color: var(--white);
}
.sidebar-header .barca-price-big {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-300);
}
.sidebar-body { padding: 24px; }
.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.detail-spec {
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px 14px;
}
.detail-spec-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}
.detail-spec-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
  font-family: 'Playfair Display', serif;
}
.sidebar-cta { display: flex; flex-direction: column; gap: 12px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

.barca-detail-desc { padding: 40px 0 0; }
.barca-detail-desc h2 { font-size: 1.7rem; margin-bottom: 16px; color: var(--navy-800); }
.barca-detail-desc p { color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-height: 88vh; max-width: 90vw; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ─── FORM CONTATTI ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy-700); margin-bottom: 7px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26,111,168,.12);
  background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
  background: var(--navy-700);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { font-size: 1.5rem; margin-bottom: 24px; color: var(--white); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,168,75,.15);
  border: 1px solid rgba(200,168,75,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item a { color: var(--gold-300); }
.contact-info-item p { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ─── ALERT ─────────────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .9rem;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination-nav { margin: 48px 0; display: flex; justify-content: center; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--navy-700);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-page:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-page.active { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* ─── NO RESULTS ────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.no-results .icon { font-size: 3.5rem; margin-bottom: 20px; opacity: .5; }
.no-results h3 { font-size: 1.5rem; color: var(--text-mid); margin-bottom: 10px; }

/* ─── SERVIZI PREVIEW ───────────────────────────────────────── */
.servizi-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.servizio-preview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.servizio-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.servizio-preview-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.servizio-preview-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-800); }
.servizio-preview-card p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* =========================================
   MODALE PRIVACY POLICY
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.7); /* Blu navy in trasparenza */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--navy-800, #0B2545);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}
.modal-close:hover {
    color: #e63946;
}
.modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}
.modal-body p {
    margin-bottom: 15px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .logo-anchor { font-size: 1.6rem; color: var(--gold); }
.footer-brand .logo-text { font-size: 1.25rem; color: var(--white); font-family: 'Playfair Display', serif; }
.footer-brand > p:first-of-type { color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .06em; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 12px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading {
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-300); }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
}
.fc-icon { flex-shrink: 0; font-size: .9rem; }
.footer-contact-list a { color: var(--gold-300); }
.footer-wa { margin-top: 20px; font-size: .85rem; padding: 10px 18px; }
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .barca-detail-layout { grid-template-columns: 1fr; }
  .barca-detail-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrapper { max-width: 480px; }
  .servizio-row { grid-template-columns: 1fr; gap: 32px; }
  .servizio-row.reverse .servizio-img { order: 0; }
  .servizio-row.reverse .servizio-body { order: 0; }
}
@media (max-width: 900px) {
  .catalogo-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .servizi-preview-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { position: static; display: flex; margin-top: 48px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 24px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(0,0,0,.2); border-radius: 0; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .hero-stats { flex-direction: column; }
  .stat-card { border-left: 1px solid rgba(200,168,75,.2); border-radius: 0; }
  .stat-card:first-child, .stat-card:last-child { border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .servizi-preview-grid { grid-template-columns: 1fr; }
  .categorie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .barche-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .detail-specs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
