/* ===========================
   BAITA VALLONGIA — style.css
   =========================== */

/* RESET & TOKENS */
:root {
  --wood: #6b4423;
  --pine: #2d4a2b;
  --cream: #f5efe4;
  --background: #faf7f1;
  --foreground: #1a1410;
  --border: rgba(26,20,16,0.1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.serif { font-family: 'Playfair Display', Georgia, serif; }
.italic { font-style: italic; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  color: var(--cream);
}

@media (min-width: 768px) {
  .nav { padding: 2rem 3rem; }
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .nav-logo { font-size: 1.5rem; }
}

.nav-links {
  display: none;
  gap: 2.5rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a:hover { opacity: .7; }

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-switch {
  display: flex;
  gap: .25rem;
  border: 1px solid rgba(245,239,228,.4);
  border-radius: 9999px;
  padding: .25rem;
}

.lang-switch button, .lang-switch a {
  background: none;
  border: none;
  color: var(--cream);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .35rem .6rem;
  border-radius: 9999px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  display: inline-block;
}

.lang-switch button.active, .lang-switch a.active {
  background: var(--cream);
  color: var(--foreground);
}

.lang-switch button:focus-visible, .lang-switch a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.cta {
  font-size: .75rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border: 1px solid rgba(245,239,228,.6);
  border-radius: 9999px;
  transition: background .2s, color .2s;
}

.cta:hover {
  background: var(--cream);
  color: var(--foreground);
}

.cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* ===========================
   HERO
   =========================== */
.hero-wrap {
  padding: .75rem;
}

@media (min-width: 768px) {
  .hero-wrap { padding: 1.5rem; }
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  border-radius: 1rem;
  overflow: hidden;
  contain: layout paint;
}

@media (min-width: 768px) {
  .hero { height: 88vh; }
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 50%, rgba(0,0,0,.3));
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--cream);
}

@media (min-width: 768px) {
  .hero-content { padding: 5rem; }
}

.eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-weight: 600;
  opacity: .8;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 3rem;
  line-height: .95;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 6rem; }
}

.hero p {
  max-width: 28rem;
  font-size: 1rem;
  font-weight: 300;
  opacity: .9;
}

@media (min-width: 768px) {
  .hero p { font-size: 1.125rem; }
}

/* ===========================
   SECTIONS SHARED
   =========================== */
section {
  padding: 6rem 0;
  contain: content;
}

@media (min-width: 768px) {
  section { padding: 8rem 0; }
}

.section-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--pine);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 400;
}

@media (min-width: 768px) {
  h2 { font-size: 3rem; }
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .5rem;
}

.muted {
  color: rgba(26,20,16,.7);
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .muted { font-size: 1.125rem; }
}

/* ===========================
   STORIA
   =========================== */
.storia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .storia {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.storia-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .storia-imgs { gap: 1.5rem; }
}

.storia-imgs img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: .75rem;
  width: 100%;
}

.storia-imgs img:nth-child(2) { margin-top: 3rem; }

.storia p { margin-bottom: 1rem; }

/* ===========================
   CUCINA
   =========================== */
.cucina { background: #f0ebe0; }

.cucina-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .cucina-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.cucina-header p {
  color: rgba(26,20,16,.6);
  margin-top: 1rem;
  max-width: 36rem;
}

.dishes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dishes {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .dishes {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }
}

.dish img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: .5rem;
  margin-bottom: 1rem;
  transition: transform .7s ease;
  width: 100%;
}

@media (hover: hover) {
  .dish:hover img { transform: scale(1.02); }
}

.dish h3 { font-size: 1.125rem; }

.dish p {
  font-size: .8rem;
  color: rgba(26,20,16,.6);
}

.seasons {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
}

@media (min-width: 768px) {
  .seasons { grid-template-columns: repeat(3, 1fr); }
}

.season {
  border-left: 2px solid rgba(45,74,43,.3);
  padding-left: 1.5rem;
}

.season h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: .5rem;
}

.season p { color: rgba(26,20,16,.7); }

/* ===========================
   POSIZIONE
   =========================== */
.posizione {
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
}

.pos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.pos-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  width: 100%;
}

.pos-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pos-sub-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pos-sub-images img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .75rem;
  width: 100%;
}

.posizione .eyebrow {
  opacity: .7;
  margin-bottom: 1.5rem;
}

.posizione h2 {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
  color: var(--cream);
}

@media (min-width: 768px) {
  .posizione h2 { font-size: 3.75rem; }
}

.pos-item h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: rgba(245,239,228,.6);
  margin-bottom: .5rem;
}

.pos-item p {
  font-weight: 300;
  line-height: 1.7;
}

.pos-winter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.divider {
  height: 1px;
  background: rgba(245,239,228,.15);
  width: 100%;
  margin: 2rem 0;
}

/* ===========================
   GALLERIA
   =========================== */
.galleria-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

.galleria-header .section-eyebrow {
  display: inline-block;
}

.galleria-header p {
  margin-top: 1rem;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .galleria-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

.gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .75rem;
  width: 100%;
  margin-bottom: 1rem;
  transition: transform .7s ease;
}

@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.03); }
}

.gallery-item h3 {
  font-size: 1.125rem;
  margin-bottom: .35rem;
}

.gallery-item p {
  font-size: .85rem;
  color: rgba(26,20,16,.6);
  line-height: 1.5;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--background);
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(26,20,16,.05);
}

@media (min-width: 768px) {
  footer { padding: 8rem 0 3rem; }
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 5fr 1fr 3fr 3fr; }
}

.foot-grid h3 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .foot-grid h3 { font-size: 2.25rem; }
}

.foot-grid h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--pine);
  margin-bottom: 1.5rem;
}

.foot-grid ul {
  list-style: none;
  font-size: .875rem;
}

.foot-grid li { margin-bottom: .5rem; }

.foot-grid a:hover { color: var(--wood); }

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,20,16,.05);
}

@media (min-width: 768px) {
  .foot-bottom { flex-direction: row; }
}

.foot-bottom p {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(26,20,16,.4);
}

/* ===========================
   FOOTER LEGALE
   =========================== */
.foot-legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26,20,16,.05);
  text-align: center;
}

.foot-legal p {
  font-size: .7rem;
  color: rgba(26,20,16,.4);
  line-height: 1.6;
}

.foot-legal-links {
  margin-top: .5rem;
}

.foot-legal-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-legal-links a:hover {
  color: var(--wood);
}

.foot-legal-links span {
  margin: 0 .5rem;
}

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--foreground);
  color: var(--cream);
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text p {
  font-size: .8rem;
  line-height: 1.6;
  opacity: .9;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-link {
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--cream);
  opacity: .8;
  white-space: nowrap;
}

.cookie-banner-link:hover { opacity: 1; }

.cookie-banner-btn {
  background: var(--cream);
  color: var(--foreground);
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-banner-btn:hover {
  background: var(--wood);
  color: var(--cream);
}

/* ===========================
   PAGINE LEGALI (Privacy/Cookie)
   =========================== */
.legal-header {
  background: var(--pine);
  padding: 1.5rem 0;
}

.legal-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-logo {
  color: var(--cream);
}

.legal-header .nav-right {
  gap: 1rem;
}

.legal-header .cta {
  color: var(--cream);
}

.legal-page {
  padding: 4rem 0 6rem;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-top: .5rem;
}

@media (min-width: 768px) {
  .legal-page h1 { font-size: 3.25rem; }
}

.legal-updated {
  margin-top: 1rem;
  font-size: .875rem;
}

.legal-section {
  margin-top: 3rem;
  max-width: 48rem;
}

.legal-section h2 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: .75rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ===========================
   PAGINE DEDICATE (Famiglie/Pesca/Escursioni/Sellaronda)
   =========================== */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--pine);
  color: var(--cream);
  text-align: center;
}

.page-hero .section-eyebrow {
  color: rgba(245,239,228,.7);
}

.page-hero h1 {
  color: var(--cream);
  font-size: 2.5rem;
  margin-top: .5rem;
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: 3.5rem; }
}

.page-hero p {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-weight: 300;
  opacity: .9;
}

.content-page section {
  padding: 4rem 0;
}

.content-page .container {
  max-width: 860px;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.content-block p {
  color: rgba(26,20,16,.75);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.info-list li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(26,20,16,.75);
  line-height: 1.6;
}

.info-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--pine);
  font-weight: 700;
}

.faq-section {
  background: #f0ebe0;
}

.faq-item {
  border-bottom: 1px solid rgba(26,20,16,.1);
  padding: 1.5rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 1.25rem;
  color: var(--pine);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 1rem;
  color: rgba(26,20,16,.7);
  line-height: 1.7;
}

.related-pages {
  background: var(--background);
  border-top: 1px solid rgba(26,20,16,.05);
  padding: 3rem 0;
}

.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-pages-grid { grid-template-columns: repeat(4, 1fr); }
}

.related-pages-grid a {
  display: block;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(26,20,16,.1);
  border-radius: .75rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, color .2s;
}

.related-pages-grid a:hover {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}