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

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background-color: #f7f3f1;
    line-height: 1.6;
}

/* PALETTE ROLLIPOP – BORDEAUX + TONI CALDI */
:root {
    --color-primary: #7b001b;
    --color-primary-soft: #f5e6e6;
    --color-dark: #141414;
    --color-muted: #6b7280;
    --color-accent: #2c9ca8;     /* colore linee separazione */
    --radius-lg: 18px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* ---- LINEA DI SEPARAZIONE TRA SEZIONI ---- */
.section + .section {
    border-top: 3px solid var(--color-accent);
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 5vw;
    background: rgba(247, 243, 241, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 65px;
    width: auto;
}

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

.logo-main {
    font-family: "Bebas Neue", system-ui, sans-serif;
    letter-spacing: 0.1em;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* NAVIGAZIONE */
.main-nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--color-muted);
    position: relative;
    padding-bottom: 0.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* SWITCH LINGUA */
.lang-switch {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    background: #fff;
    cursor: pointer;
    min-width: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* SEZIONI GENERALI */
.section {
    padding: 3.5rem 5vw;
}

.section-alt {
    background: #ffffff;
}

.section-header {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: 1.9rem;
    margin-bottom: 0.7rem;
    color: var(--color-dark);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* ---- HOME INFO ---- */
.home-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.8rem;
}

.home-info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.home-info-title {
    font-family: "Bebas Neue";
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.home-info-card a.btn-primary {
    color: #fff !important;
}

/* ---- HERO ---- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.8rem;
}

.hero-title {
    font-family: "Bebas Neue";
    font-size: clamp(2.4rem, 4vw, 3rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 34rem;
}

.hero-menu-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.hero-menu-card h2 {
    font-family: "Bebas Neue";
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.16em;
}

.hero-photo {
    width: 100%;
    height: 75vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
}

/* BOTTONI */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

/* ---- FOTO ---- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.photo-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.photo-card img {
    width: 100%;
    height: 28vw;
    max-height: 350px;
    object-fit: cover;
}

.photo-card figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ---- PRENOTAZIONE ---- */
.section-booking {
    background: #f7f3f1;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.2rem;
}

.booking-title {
    font-family: "Bebas Neue";
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0 0 0.7rem 0;
}

.booking-text p {
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.booking-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 1.4rem;
}

.booking-note {
    margin-top: 1.6rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.booking-widget-card {
    background: #fff;
    border-radius: 14px;
    padding: 0.7rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

/* ---- CONTATTI ---- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.contact-title {
    font-family: "Bebas Neue";
    font-size: 1.8rem;
    margin: 0 0 0.7rem 0;
    color: var(--color-primary);
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.contact-map iframe {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* ---- FOOTER ---- */
.site-footer {
    padding: 1.6rem 5vw 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-muted);
    border-top: 1px solid #e5e7eb;
    background: #f5ebe8;
}

/* ---- LINGUE ---- */
.lang-hide {
    display: none !important;
}

/* =========================================================
   ADDON: PRIVACY & COOKIE POLICY PAGE
   (usa .legal-wrap dentro la sezione, coerente con lo stile)
   ========================================================= */
.legal-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.legal-wrap h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    font-family: "Bebas Neue", system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-dark);
    font-size: 1.35rem;
}

.legal-wrap h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    color: var(--color-dark);
}

.legal-wrap p {
    margin: 0.2rem 0 0.9rem 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.legal-wrap ul {
    margin: 0.2rem 0 0.9rem 1.2rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.legal-wrap li {
    margin: 0.25rem 0;
}

.legal-note {
    margin-top: 1.3rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* =========================================================
   COOKIE BANNER MICRO (ACCENT + TINT SCURO)
========================= */
.rp-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    display: none;

    /* ACCENT + TINT SCURO */
    background:
      linear-gradient(
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.35)
      ),
      rgba(44, 156, 168, 0.22);

    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(44, 156, 168, 0.45);

    color: #ffffff;
    font-size: 12px;
    line-height: 1.15;
    padding: 6px 10px;
}

.rp-cookie-mini {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.rp-cookie-mini-text {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.rp-cookie-mini-copy {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-cookie-mini-link {
    color: var(--color-accent);
    text-decoration: underline;
}

.rp-cookie-mini-actions {
    display: flex;
    gap: 6px;
}

.rp-btn-mini {
    border: 1px solid rgba(44, 156, 168, 0.65);
    background: transparent;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.rp-btn-mini.primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Mobile: nasconde la frase e lascia "Info" + bottoni */
@media (max-width: 520px) {
    .rp-cookie-mini-copy { display: none; }
}

/* Modal preferenze */
.rp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;

    background: rgba(0, 0, 0, 0.35);
    display: none; /* mostrato via JS */

    padding: 12px;
}

.rp-modal {
    width: min(520px, 94vw);
    margin: 10vh auto 0;

    background: #fff;
    color: #111;

    border-radius: 14px;
    padding: 14px 14px 12px;

    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
}

.rp-modal h3 {
    margin: 0 0 8px 0;
    font-family: "Bebas Neue", system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: var(--color-dark);
}

.rp-modal p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-muted);
}

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

    padding: 10px 0;
    border-top: 1px solid #eee;
    gap: 10px;
}

.rp-row:first-of-type { border-top: 0; }

.rp-row strong { font-size: 13px; color: var(--color-dark); }

.rp-row small {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}

.rp-switch { font-size: 13px; color: var(--color-dark); }

.rp-footer-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rp-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;

    padding: 8px 10px;
    border-radius: 999px;

    font-size: 12px;
    line-height: 1.1;
    cursor: pointer;

    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.rp-btn:hover { border-color: #9ca3af; }

.rp-btn.dark {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .home-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-photo {
        height: 55vh;
        order: -1;
        margin-bottom: 1.5rem;
    }

    .booking-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .main-nav ul {
        display: none;
    }

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

    .home-info-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Link color: usare il colore accent (linee separazione)
   ========================= */

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer links in accent (coerenti con le linee separazione) */
.site-footer a,
.site-footer a:visited,
.rp-consent-link {
  color: var(--color-accent);
  text-decoration: underline;
}

.site-footer a:hover,
.rp-consent-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =========================
   Cookie banner: accent sfumato e leggermente trasparente
   ========================= */

.rp-cookie-banner {
  /* tono accent, scuro e trasparente */
  background: rgba(44, 156, 168, 0.16);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(44, 156, 168, 0.35);
  color: #ffffff;
}

.rp-cookie-mini-link {
  /* link "Info" nel banner: accent, coerente */
  color: rgba(44, 156, 168, 0.95);
}

.rp-cookie-mini-link:hover {
  color: rgba(44, 156, 168, 1);
}

.rp-btn-mini {
  /* bottoni più "soft" sullo sfondo chiaro/trasparente */
  border: 1px solid rgba(44, 156, 168, 0.55);
  color: #ffffff;
}

.rp-btn-mini:hover {
  border-color: rgba(44, 156, 168, 0.9);
}

.rp-btn-mini.primary {
  /* CTA: piena, ma in accent */
  background: rgba(44, 156, 168, 0.95);
  color: #ffffff;
  border-color: rgba(44, 156, 168, 0.95);
}

/* =========================================================
   OVERRIDE FINALE – COOKIE BANNER
   Testo NERO + Accent sfumato + Tint scuro
   (questo blocco DEVE stare in fondo al file)
   ========================================================= */

/* Banner container */
.rp-cookie-banner {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.18)
    ),
    rgba(44, 156, 168, 0.28) !important;

  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(44, 156, 168, 0.45);

  color: #111111 !important; /* TESTO NERO */
}

/* Forza testo nero su TUTTO il banner */
.rp-cookie-banner,
.rp-cookie-banner * {
  color: #111111 !important;
}

/* Link "Info" */
.rp-cookie-mini-link {
  color: var(--color-accent) !important;
  text-decoration: underline;
}

/* Bottoni secondari */
.rp-btn-mini {
  border: 1px solid rgba(44, 156, 168, 0.7) !important;
  background: transparent !important;
  color: #111111 !important;
}

/* Hover bottoni */
.rp-btn-mini:hover {
  border-color: rgba(44, 156, 168, 1) !important;
}

/* CTA principale */
.rp-btn-mini.primary {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #ffffff !important;
}

/* =========================
   Social links – Contatti
========================= */
.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--color-accent);
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================================================
   FIX icone social (override anti-SVG globali)
   INCOLLA IN FONDO AL FILE styles.css
   ========================================================= */

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--color-accent);
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Qui “blocchiamo” qualsiasi regola globale su svg */
.social-links svg.social-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;

  display: inline-block !important;
  flex: 0 0 20px !important;

  fill: currentColor !important;
}

/* Ulteriore sicurezza: se qualche CSS globale mette fill nero */
.social-links svg.social-icon path {
  fill: currentColor !important;
}
