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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --green-dark:    #202f56;
  --green-primary: #202f56;
  --green-mid:     #3b4c7c;
  --green-light:   #d1d9eb;
  --lime:          #8cb3f0;
  --white:         #ffffff;
  --gray-50:       #f8fafc;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-400:      #94a3b8;
  --gray-600:      #475569;
  --gray-800:      #1e293b;
  --text:          #0f172a;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --transition: all .25s ease;
  --header-h:   60px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(26px, 6vw, 48px); font-weight: 700; }
h2 { font-size: clamp(20px, 4vw, 32px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p  { font-size: 15px; color: var(--gray-600); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.bg-white  { background: var(--white); }
.bg-light  { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.section-sub { color: var(--gray-600); font-size: 15px; }

.section-cta { text-align: center; margin-top: 2rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn i {
  display: inline-flex;
  align-items: center;
  margin-right: .5rem;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebc57;
  border-color: #1ebc57;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.35);
}
.whatsapp-float i {
  font-size: 28px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 64px;
    height: 64px;
  }
  .whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.logo img.site-logo { width: 54px; max-height: 54px; height: auto; border-radius: 10px; object-fit: contain; display: block; }
.logo i { color: var(--lime); font-size: 20px; }
.logo-footer { margin-bottom: .75rem; }

@media (max-width: 640px) {
  .logo img.site-logo { width: 54px; max-height: 54px; }
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1rem;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 14px; border-radius: var(--radius-sm); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--green-dark);
  overflow: hidden;
  padding: 5rem 1.25rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32,47,86,.45), rgba(32,47,86,.45)),
    url("img/campo-san-luca-genova (9).jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  transform: scale(1.03);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 64px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

.hero p {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   TWO COL (Chi siamo)
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.col-text .section-label { margin-bottom: .4rem; }
.col-text h2 { margin-bottom: 1rem; }
.col-text p  { margin-bottom: .75rem; }

.col-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .col-img { order: -1; }
}

/* =============================================
   CARD GRID
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon i { color: var(--green-primary); font-size: 20px; }

.card h3 { margin-bottom: .4rem; color: var(--text); }
.card p   { font-size: 13px; }

/* =============================================
   DOVE SIAMO
   ============================================= */
.dove-siamo-box {
  background: var(--gray-50);
  border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.dove-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.info-item i {
  color: var(--green-primary);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.info-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 3px;
}
.info-item p { font-size: 14px; color: var(--gray-800); }

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-primary);
  font-size: 13px;
  font-weight: 600;
  margin-top: .5rem;
  transition: var(--transition);
}
.maps-link:hover { color: var(--green-dark); }
.maps-link i { font-size: 12px; }

.dove-map {
  overflow: hidden;
  border-radius: var(--radius-md);
  height: 320px;
}

.dove-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .dove-grid { grid-template-columns: 1fr; }
  .dove-siamo-box { padding: 1.25rem; }
  .dove-map { height: 240px; }
}

/* =============================================
   PAGE HERO (interno pagine)
   ============================================= */
.page-hero {
  background: var(--green-primary);
  padding: 2.5rem 1.25rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(22px, 5vw, 36px); margin-bottom: .4rem; }
.page-hero p  { color: rgba(255,255,255,.72); font-size: 15px; }

/* =============================================
   SERVIZI — prenotazioni
   ============================================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.feature-item p {
  margin: 0;
  color: var(--gray-600);
}
.feature-icon {
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.video-block {
  margin-bottom: 2rem;
}
.video-block .section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.video-block video {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  background: rgba(32,47,86,.5);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: white;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 32px;
  background: rgba(255,255,255,.1);
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =============================================
   CONTATTI
   ============================================= */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contatti-grid { grid-template-columns: 1fr; }
}

/* Recapiti */
.recapiti h2 { margin-bottom: 1.25rem; }
.recapiti .info-item { margin-bottom: 1rem; }
.recapiti .info-item a { color: var(--text); font-size: 14px; }

/* PRENOTAZIONI */
.booking-copy {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.booking-copy p,
.booking-contacts p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}
.booking-contacts {
  display: grid;
  gap: .75rem;
}
.booking-contacts p {
  font-weight: 600;
}

.recapiti h2 { margin-bottom: 1.25rem; }
.recapiti .info-item { margin-bottom: 1rem; }
.recapiti .info-item a { color: var(--text); font-size: 14px; }
.recapiti .info-item a:hover { color: var(--green-primary); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: linear-gradient(135deg, var(--green-dark) 0%, #15213c 100%);
  color: rgba(255,255,255,.72);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-brand,
.footer-links-col {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  max-width: 280px;
  margin-top: .75rem;
}
.footer-brand .logo {
  color: var(--white);
  align-items: center;
}
.footer-brand .logo i { color: var(--lime); }
.footer-brand .logo img.site-logo {
  width: 46px;
  max-height: 46px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-col strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.footer-links-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links-col a:hover {
  color: var(--white);
  transform: translateX(2px);
}
.footer-links-col a i {
  color: var(--lime);
  width: 14px;
  text-align: center;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2.25rem 0 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .footer-brand,
  .footer-links-col {
    padding: 1rem;
  }
  .footer-copy {
    font-size: 11px;
  }
}