/* Aggiungi questo all'inizio di style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
  --brand: #0f4c75; /* Blu profondo più elegante */
  --accent: #bbe1fa;
  --text: #333333;
  --muted: #666666;
  --bg: #fdfdfd;
  --header-height: 80px;
  --radius: 12px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

body {
  font-family: 'Inter', sans-serif; /* Font più moderno per il testo */
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif; /* Font elegante per i titoli */
  font-weight: 700;
}

/* Pulsanti più moderni */
.cta, button {
  border-radius: 50px; /* Pill shape */
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta:hover, button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Miglioramento Card */
.card, .room-card, .service-item {
  border: none !important; /* Rimuovi bordi spessi vecchi */
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

/* Mentre l'animazione è in corso */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Stato iniziale di chi ENTRA (Parte trasparente e leggermente rimpicciolito) */
.fade-enter-from {
  opacity: 0;
  transform: scale(0.98); 
}

/* Stato finale di chi ESCE (Diventa trasparente e si ingrandisce leggermente) */
.fade-leave-to {
  opacity: 0;
  transform: scale(1.02);
}

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Padding per header fixed */
body {
  padding-top: var(--header-height);
}

/* --- UTILITY --- */
.container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
}

.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;
}

/* --- HEADER (Fisso & Bianco) --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 100%;
}

/* LOGO Header */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand);
  flex: 0 0 auto;
}

.logo-mark {
  width: 50px; 
  height: 50px; 
  object-fit: contain; 
  display: block; 
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--brand);
}

.logo-text .tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* NAVIGAZIONE DESKTOP */
nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-right: 24px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.primary-nav a:hover {
  background: rgba(6,83,121,0.06);
  color: var(--brand);
}

/* CTA BUTTON */
.cta {
  background: var(--brand);
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(6,83,121,0.15);
  transition: transform 0.1s, box-shadow 0.2s;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* HAMBURGER: nascosto su desktop, mostrato sotto i 1024px (vedi media
   query più sotto). Area cliccabile 44x44 anche se l'icona è piccola. */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--brand);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(6,83,121,0.25);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  /* Sfondo a gradiente invece di una foto: file hero.jpg mancante nel
     progetto originale, mai segnalato al cliente. In una demo di
     portfolio niente immagini rotte: un gradiente sobrio, non un
     placeholder che sembra un errore. */
  background-image: linear-gradient(160deg, #0B4E64 0%, #146680 55%, #1F7A8C 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,83,121,0.5), rgba(6,83,121,0.65));
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text { max-width: 600px; }
.hero-text h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; line-height: 1.1; font-weight: 800; }
.hero-text p { font-size: 18px; margin-bottom: 24px; opacity: 0.95; line-height: 1.6; }

.hero-image {
  flex: 0 0 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: rotate(2deg);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-image img { width: 100%; height: auto; display: block; }

/* --- CONTENT SECTION --- */
.content { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

.section-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.text-block { flex: 1; }
.text-block h2 { font-size: 32px; color: var(--brand); margin-bottom: 16px; }
.text-block p { font-size: 17px; line-height: 1.6; color: var(--muted); }

.image-block {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.image-block img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* GRID CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  scroll-margin-top: 100px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card h3 { margin: 16px 0 0; font-size: 18px; color: var(--brand); }

/* --- PLACEHOLDER FOTO ---
   Progetto di portfolio: nessuna foto reale di un'attività reale, solo
   blocchi a gradiente con etichetta, mai spacciati per fotografie vere. */
.ph {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); font-weight: 700; font-size: 13px;
  letter-spacing: .03em; text-align: center; padding: 12px;
}
.card .ph { width: 100%; height: 200px; }
.ph-marinaio { background: linear-gradient(160deg, #2b6f6f, #14504f); }
.ph-cozze    { background: linear-gradient(160deg, #2f5c8a, #1c3b5c); }
.ph-polpo    { background: linear-gradient(160deg, #a3552b, #6e3418); }
.ph-interni  { background: linear-gradient(160deg, #6d4e2f, #4a3728); }
.ph-storia   { background: linear-gradient(160deg, #1F7A8C, #0B4E64); }
.ph-sogno    { background: linear-gradient(160deg, #146680, #0B3C49); }
.ph-crescita { background: linear-gradient(160deg, #2b6f6f, #123a3a); }

/* --- FOOTER (NUOVO STILE SEMPLIFICATO) --- */
.site-footer {
  background: #072f3c;
  color: #e6f1f6;
  padding-top: 60px;
  margin-top: 60px;
  border-top: 4px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 40px;
}

/* Colonna Brand (Sinistra) */
.brand-col {
  flex: 1;
  max-width: 400px;
}

/* Colonna Contatti (Destra) */
.contact-col {
  flex: 0 0 auto;
  text-align: right;
}

/* Logo Footer */
.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.tagline {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 24px;
}

/* Contatti Testo */
.contact-col h4 {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.4;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-size: 18px; 
}

.contact-item a:hover {
  text-decoration: underline;
  color: var(--brand); 
}

/* --- SOCIAL ICONS GRANDI E SENZA SFONDO --- */
.social {
  display: flex;
  align-items: center;
  gap: 20px;          /* Più spazio tra i loghi grandi */
  margin-top: 24px;
}

.social a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s;
}

.social img {
  width: 42px;        /* Dimensione Grande */
  height: 42px;
  display: block;
  object-fit: contain;
  
  /* NESSUN FILTRO E NESSUNO SFONDO BIANCO */
}

/* Hover Effect */
.social a:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

/* --- FOOTER BOTTOM (Copyright) --- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  font-size: 14px;
  opacity: 0.7;
}

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

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  margin-left: 10px;
}
.footer-bottom a:hover { text-decoration: underline; color: white; }

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile (Sotto 1024px) */
@media (max-width: 1024px) {
  /* 1. Reset Altezza Header */
  :root { --header-height: 70px; }
  .site-header { height: var(--header-height); }
  body { padding-top: var(--header-height); }

  /* 2. Menu di navigazione: diventa un pannello a tendina sotto l'header,
     aperto/chiuso dall'hamburger — prima spariva del tutto senza sostituto. */
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-right: 0;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  nav.primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px clamp(1.25rem, 4vw, 2rem); border-radius: 0; }
  .primary-nav a:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .primary-nav .cta { margin: 12px clamp(1.25rem, 4vw, 2rem); text-align: center; }
  .menu-toggle { display: flex; }

  /* 3. Gestione Logo su schermi medi/piccoli */
  .logo-mark { width: 40px; height: 40px; }
  .logo-text .name { font-size: 16px; }
  .logo-text .tag { display: none; } 

  /* 4. Layout Hero */
  .hero .container { flex-direction: column; text-align: center; }
  .hero-image { flex: 0 0 auto; width: 80%; transform: none; margin-top: 24px; }
  
  /* 5. Sezioni Content */
  .section-row { flex-direction: column-reverse; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Pulsante Prenota visibile su mobile */
  .cta { display: inline-flex; font-size: 14px; padding: 8px 14px; }
}

/* Smartphone Stretti (Sotto 600px) */
@media (max-width: 600px) {
  /* Titoli Hero più piccoli */
  .hero-text h1 { font-size: 32px; }
  
  /* Griglia a 1 colonna */
  .grid { grid-template-columns: 1fr; }
  
  /* --- FOOTER MOBILE CENTRATO --- */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .brand-col, .contact-col {
    max-width: 100%;
    width: 100%;
    text-align: center; /* Forza centratura */
  }

  .tagline { margin: 0 auto 24px auto; }
  
  /* Centra il logo */
  .footer-logo { margin-left: auto; margin-right: auto; }
  
  /* Centra i social */
  .social { justify-content: center; }
  
  /* Centra Copyright */
  .footer-bottom .container {
    flex-direction: column;
    gap: 10px;
  }

.back-home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-home-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

}