/* ============================================
   Hostaria alla Bandiera dal 2015
   ============================================ */

:root {
  --c-red: #8B2E2E;
  --c-red-dark: #6E2424;
  --c-cream: #F5F1E8;
  --c-cream-dark: #EAE3D2;
  --c-white: #FFFFFF;
  --c-text: #2A2520;
  --c-text-muted: #6B5F52;
  --c-gold: #B8893E;
  --c-dark: #1A1612;

  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-red-dark); }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--cream { background: var(--c-cream); }
.section--white { background: var(--c-white); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  max-width: 38rem;
  margin-bottom: 3rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: background .3s, padding .3s, box-shadow .3s;
}

.header.is-scrolled {
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__brand {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header__brand small {
  display: block;
  font-size: 0.7rem;
  font-family: var(--f-sans);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: 2px;
}

.header.is-scrolled .header__brand { color: var(--c-text); }

.header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== DESKTOP NAVIGATION ===== */
.primary-nav {
  display: flex;
  align-items: center;
}
.primary-nav__list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}
.primary-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color .2s;
}
.primary-nav__link:hover { color: var(--c-gold); }
.header.is-scrolled .primary-nav__link { color: var(--c-text); }
.header.is-scrolled .primary-nav__link:hover { color: var(--c-red); }

/* ===== DESKTOP LANGUAGE PILLS (compact: flag + 2-letter code) ===== */
.lang-pills {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-pills__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color .2s, background .2s;
}
.lang-pills__flag { font-size: 0.95rem; line-height: 1; }
.lang-pills__item:hover { color: var(--c-white); }
.lang-pills__item.is-active { color: var(--c-gold); }
.header.is-scrolled .lang-pills__item { color: var(--c-text-muted); }
.header.is-scrolled .lang-pills__item:hover { color: var(--c-text); }
.header.is-scrolled .lang-pills__item.is-active { color: var(--c-red); }

/* ===== MOBILE BURGER (rounded square button) ===== */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  z-index: 102;
  position: relative;
  transition: background .2s, border-color .2s;
}
.burger:hover { background: rgba(255,255,255,0.2); }
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: transform .25s, opacity .2s, background .2s;
}
.header.is-scrolled .burger {
  background: var(--c-white);
  border-color: var(--c-cream-dark);
}
.header.is-scrolled .burger span { background: var(--c-text); }

body.drawer-open .burger {
  background: transparent;
  border-color: transparent;
}
body.drawer-open .burger span { background: var(--c-text); }
body.drawer-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .burger span:nth-child(2) { opacity: 0; }
body.drawer-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER (full-screen overlay) ===== */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90; /* below .header (z:100) so the burger stays clickable as X */
  background: var(--c-cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
}
body.drawer-open .drawer {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.drawer__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 6.5rem var(--gutter) 2rem; /* extra top padding so content clears the burger/header */
  gap: 2rem;
}
.drawer__nav { flex: 0 0 auto; }
.drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  color: var(--c-text);
  font-family: var(--f-serif);
  font-size: 1.85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--c-cream-dark);
  transition: color .2s;
}
.drawer__link:hover { color: var(--c-red); }
.drawer__arrow {
  color: var(--c-text-muted);
  font-size: 1.2rem;
  transition: transform .2s, color .2s;
}
.drawer__link:hover .drawer__arrow {
  transform: translateX(4px);
  color: var(--c-red);
}

.drawer__lang { padding-top: 0.5rem; }
.drawer__lang-title {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.drawer__lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer__lang-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 1rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.drawer__lang-item:hover { background: var(--c-cream-dark); }
.drawer__lang-item.is-active {
  background: var(--c-red);
  color: var(--c-white);
}
.drawer__lang-flag { font-size: 1.4rem; line-height: 1; }

.drawer__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}
.drawer__cta-btn {
  width: 100%;
  justify-content: center;
}

body.drawer-open { overflow: hidden; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  color: var(--c-white);
  background: var(--c-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,.4) 85%,
    rgba(0,0,0,.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.hero__inner {
  max-width: 36rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.hero__subtitle {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--c-cream);
  margin-bottom: 0;
  font-weight: 300;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
  max-width: 28rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: var(--gutter);
  z-index: 1;
  color: var(--c-white);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero__scroll { display: none; } /* avoid overlap with hero text on small screens */
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: var(--c-white);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ===== HERO CTA BAND ===== */
.hero-cta {
  background: var(--c-cream);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-cream-dark);
}

.hero-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.hero-cta__text {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin: 0;
}

.hero-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hero-cta .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.8rem;
}

@media (min-width: 720px) {
  .hero-cta__inner {
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.btn--primary {
  background: var(--c-red);
  color: var(--c-white);
  border-color: var(--c-red);
}
.btn--primary:hover {
  background: var(--c-red-dark);
  color: var(--c-white);
  border-color: var(--c-red-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: var(--c-white);
  color: var(--c-text);
  border-color: var(--c-white);
}

.btn--outline {
  background: transparent;
  color: var(--c-red);
  border-color: var(--c-red);
}
.btn--outline:hover {
  background: var(--c-red);
  color: var(--c-white);
}

/* ===== STORIA (about) ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--c-text);
}

.about__text p + p { margin-top: 1.25rem; }

.about__text p:first-of-type::first-letter {
  font-family: var(--f-serif);
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--c-red);
  font-weight: 500;
}

/* ===== CUCINA ===== */
.cuisine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cuisine-card {
  background: var(--c-white);
  padding: 2.25rem 1.75rem;
  border-radius: 2px;
  border: 1px solid var(--c-cream-dark);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.section--cream .cuisine-card { background: var(--c-white); }
.section--white .cuisine-card { background: var(--c-cream); border-color: var(--c-cream-dark); }

.cuisine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.cuisine-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.cuisine-card__title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--c-red);
}

.cuisine-card__text {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery__item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.gallery__item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 2; }

/* ===== CONTACT / VISIT ===== */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.visit__info dl {
  display: grid;
  gap: 1.75rem;
}

.visit__info dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 0.4rem;
}

.visit__info dd {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-text);
}

.visit__info dd a {
  color: var(--c-text);
  border-bottom: 1px solid var(--c-cream-dark);
  transition: border-color .2s;
}
.visit__info dd a:hover {
  border-color: var(--c-red);
  color: var(--c-red);
}

.visit__ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit__map {
  border-radius: 2px;
  overflow: hidden;
  min-height: 380px;
  background: var(--c-cream-dark);
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-style: italic;
  color: rgba(255,255,255,.5);
  font-size: 0.95rem;
}

.footer__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a { color: rgba(255,255,255,.7); }
.footer__list a:hover { color: var(--c-white); }

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}

.footer__social a:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-dark);
}

.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}
.footer__legal p { margin: 0; }
.footer__legal strong { color: rgba(255,255,255,.75); font-weight: 500; }
.footer__legal a { color: rgba(255,255,255,.65); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }
.footer__legal a:hover { color: var(--c-white); text-decoration-color: rgba(255,255,255,.6); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about, .visit, .footer__top {
    grid-template-columns: 1fr;
  }

  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16/10; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 980px) {
  .primary-nav,
  .lang-pills { display: none; }

  .burger { display: flex; }

  .drawer { display: block; }

  body.drawer-open .header {
    background: var(--c-cream);
    padding: 0.6rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
  }
  body.drawer-open .header__brand { color: var(--c-text); }

  .header__brand { font-size: 1.15rem; }
  .header__brand small { font-size: 0.6rem; letter-spacing: 0.15em; }

  .hero { min-height: 80vh; min-height: 80svh; }
  .hero__inner { max-width: 100%; }
}

@media (max-width: 500px) {
  body { font-size: 16px; }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery__item:nth-child(1) { grid-row: span 2; }
}

/* ===== UTILITIES ===== */
.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;
}
