/* ============================================
   FONTS (self-hosted)
   ============================================ */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cinzel-v26-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-v26-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-700italic.woff2') format('woff2');
}

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

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

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #222;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  line-height: 1.1;
}

/* ============================================
   LAYOUT UTILS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 24px;
  text-align: center;
}

.hero__title {
  font-size: 90px;
  margin-bottom: 0;
}

.hero__subtitle {
  font-size: 60px;
  margin-bottom: 45px;
}

.hero__text {
  font-size: 21px;
  font-weight: 300;
}

.hero__text a {
  color: #fff;
}

@media (max-width: 767px) {
  .hero__content {
    padding: 30px 24px;
  }
  .hero__title { font-size: 60px; }
  .hero__subtitle { font-size: 30px; margin-bottom: 30px; }
  .hero__text { font-size: 15px; }
}

/* ============================================
   SOCIAL BAR (destra, verticale)
   ============================================ */
.socials {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  list-style: none;
}

.socials__item {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials__item a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.socials__item svg {
  width: 32px;
  height: 32px;
}

.socials__item--facebook { background: #3b5998; }
.socials__item--instagram {
  background: linear-gradient(202deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}
.socials__item--mail { background: #bb001b; }

@media (max-width: 767px) {
  .socials__item { width: 40px; height: 40px; }
  .socials__item svg { width: 20px; height: 20px; }
}

/* ============================================
   SECTION: CHI SIAMO
   ============================================ */
.about {
  background: #faf7f2;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__title {
  font-size: 48px;
  margin-bottom: 24px;
  color: #2a1a0a;
}

.about__text p {
  margin-bottom: 16px;
  font-size: 17px;
}

.about__images {
  position: relative;
  aspect-ratio: 1 / 1;
}

.about__image {
  position: absolute;
  width: 56%;
  aspect-ratio: 3 / 4;
  background: #d4c4a8 center / cover;
  border-radius: 4px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.about__image--a {
  left: 0;
  top: 4%;
  transform: rotate(-5deg);
  z-index: 2;
}

.about__image--b {
  right: 0;
  bottom: 4%;
  transform: rotate(5deg);
  z-index: 1;
}

@media (max-width: 767px) {
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__title { font-size: 36px; }
  .about__images { aspect-ratio: 4 / 3; }
  .about__image { width: 55%; }
}

/* ============================================
   SECTION: APPUNTAMENTI FISSI
   ============================================ */
.regulars {
  background: #fff;
}

.regulars__header {
  text-align: center;
  margin-bottom: 50px;
}

.regulars__title {
  font-size: 48px;
  color: #2a1a0a;
  margin-bottom: 12px;
}

.regulars__subtitle {
  font-size: 18px;
  color: #777;
}

.regulars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.regular-card {
  background: #faf7f2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.regular-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.regular-card__image {
  aspect-ratio: 3 / 2;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  background-color: #d4c4a8;
}

.regular-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.regular-card__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9b7a3e;
  margin-bottom: 12px;
}

.regular-card__title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  margin-bottom: 14px;
  color: #2a1a0a;
}

.regular-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
  flex: 1;
}

.regular-card__actions {
  margin-top: auto;
}

.regular-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease;
}

.regular-card__cta--whatsapp {
  background: #25D366;
  color: #fff;
}

.regular-card__cta--whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.regular-card__cta svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .regulars__title { font-size: 36px; }
  .regulars__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .regular-card__title { font-size: 24px; }
  .regular-card__body { padding: 22px; }
}

/* ============================================
   SECTION: EVENTI
   ============================================ */
.events {
  background: #fff;
}

.events__header {
  text-align: center;
  margin-bottom: 50px;
}

.events__title {
  font-size: 48px;
  color: #2a1a0a;
  margin-bottom: 12px;
}

.events__subtitle {
  font-size: 18px;
  color: #777;
}

.events__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.events__carousel::-webkit-scrollbar {
  height: 6px;
}

.events__carousel::-webkit-scrollbar-thumb {
  background: #d4c4a8;
  border-radius: 3px;
}

.events__more {
  text-align: center;
  margin-top: 40px;
}

.events__link {
  display: inline-block;
  padding: 10px 20px;
  color: #2a1a0a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #2a1a0a;
  transition: opacity 150ms ease;
}

.events__link:hover,
.events__link:focus-visible {
  opacity: 0.65;
}

.event-card {
  scroll-snap-align: start;
  background: #faf7f2;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card__image {
  aspect-ratio: 16 / 9;
  background: #d4c4a8 center / cover;
}

.event-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__date {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9b7a3e;
  margin-bottom: 8px;
}

.event-card__title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: #2a1a0a;
}

.event-card__location {
  font-size: 14px;
  color: #777;
  margin-top: auto;
}

/* ============================================
   SECTION: CONTATTI + MAPPA
   ============================================ */
.contact {
  background: #2a1a0a;
  color: #faf7f2;
}

.contact__title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 50px;
  color: #faf7f2;
}

.contact__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.contact__info p {
  margin-bottom: 16px;
  font-size: 17px;
}

.contact__info a {
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: border-color .2s ease;
}

.contact__info a:hover {
  border-bottom-color: rgba(255,255,255,.8);
}

.contact__tgtg {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 24px;
}

.contact__photo {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  max-width: 400px;
}

.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact__map {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 4px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: #3d2817;
  color: #faf7f2;
}

.map-placeholder__address {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.map-placeholder__btn {
  padding: 10px 22px;
  background: #faf7f2;
  color: #2a1a0a;
  border: 1px solid #faf7f2;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.map-placeholder__btn:hover,
.map-placeholder__btn:focus-visible {
  background: transparent;
  color: #faf7f2;
}

.map-placeholder__note {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
  max-width: 460px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* HOURS */
.hours {
  font-size: 16px;
}

.hours__title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: #faf7f2;
}

.hours__status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hours__status--open {
  background: #e8f3e9;
  color: #2d6b2f;
}

.hours__status--closed {
  background: #f5e6e6;
  color: #8a3a3a;
}

.hours__status--opening-soon {
  background: #faf0e0;
  color: #a66d2c;
}

.hours__status--closing {
  background: #f5e6e6;
  color: #8a3a3a;
}

.hours__sublabel {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 16px;
}

.hours__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours__day {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}

.hours__day:last-child {
  border-bottom: none;
}

.hours__day-label {
  font-weight: 400;
}

.hours__day-value {
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hours__day-value--full {
  grid-column: 2 / -1;
}

.hours__closed {
  opacity: 0.55;
  font-style: italic;
}

.hours__closings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hours__closing {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .contact__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact__photo {
    max-width: 100%;
    margin: 0 auto;
  }
  .contact__title { font-size: 36px; margin-bottom: 30px; }
  .contact__map {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   PAGINA EVENTI (listing)
   ============================================ */
.events-page {
  padding-top: 120px;
}

.events__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}

.events__tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d4c4a8;
  color: #7a5a2e;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.events__tab:hover,
.events__tab:focus-visible {
  background: #f5ecd9;
}

.events__tab--active {
  background: #7a5a2e;
  border-color: #7a5a2e;
  color: #faf7f2;
}

.events__tab--active:hover,
.events__tab--active:focus-visible {
  background: #5a3f1e;
  color: #faf7f2;
}

.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.events__pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

/* ============================================
   DETTAGLIO EVENTO
   ============================================ */
.event-detail {
  padding-top: 120px;
}

.event-detail__cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #d4c4a8;
  border-radius: 4px;
  margin-bottom: 40px;
}

.event-detail__header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.event-detail__title {
  font-size: 48px;
  color: #2a1a0a;
  margin: 12px 0;
}

.event-detail__location,
.event-detail__organizer {
  font-size: 17px;
  color: #777;
  margin-bottom: 6px;
}

.event-detail__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.event-detail__body p {
  margin-bottom: 16px;
}

.event-detail__link,
.event-detail__back,
.legal__back {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.events__back {
  margin: 0 0 24px;
}

.events__back a {
  color: #9b7a3e;
  border-bottom: 1px solid #9b7a3e;
}

.event-detail__link a,
.event-detail__back a,
.legal__back a {
  color: #9b7a3e;
  border-bottom: 1px solid #9b7a3e;
}

@media (max-width: 767px) {
  .event-detail__title { font-size: 32px; }
  .events-page, .event-detail { padding-top: 80px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a0f05;
  color: #aaa;
  padding: 30px 24px;
  font-size: 14px;
  border-top: 1px solid #faf7f2;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
}

.footer__links {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

.footer__links a,
.footer__linklike {
  color: #d4c4a8;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer__links a:hover,
.footer__linklike:hover {
  color: #faf7f2;
}

/* ============================================
   PAGINE LEGALI (cookie policy, ecc.)
   ============================================ */
.legal__container {
  max-width: 780px;
}

.legal__title {
  font-family: 'Cinzel', serif;
  font-size: 44px;
  color: #2a1a0a;
  margin-bottom: 8px;
}

.legal__updated {
  color: #777;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: #2a1a0a;
  margin: 32px 0 12px;
}

.legal h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #3d2817;
  margin: 22px 0 10px;
}

.legal p,
.legal ul {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal code {
  background: #f1ead9;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.legal a {
  color: #9b7a3e;
  border-bottom: 1px solid #9b7a3e;
}

.legal__inline-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #9b7a3e;
  border-bottom: 1px solid #9b7a3e;
  cursor: pointer;
}

/* ============================================
   BRAND MARK (cuore di pane, fisso)
   ============================================ */
.brand-mark {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 260px;
  height: auto;
  z-index: 100;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  transform: translateY(-4px);
}

.brand-mark:focus-visible {
  outline: 2px solid #c9a96a;
  outline-offset: 4px;
  border-radius: 4px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

@media (max-width: 767px) {
  .brand-mark {
    right: 0;
    bottom: 0;
    width: 170px;
  }
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 26, 10, 0.95);
    color: #faf7f2;
    padding: 20px;
    z-index: 99;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__link {
    color: #d4c4a8;
    border-bottom: 1px solid #d4c4a8;
    transition: opacity 0.2s;
}

.cookie-banner__link:hover {
    opacity: 0.8;
}

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
}

.cookie-banner__button {
    padding: 8px 16px;
    border: 1px solid #d4c4a8;
    background: transparent;
    color: #faf7f2;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-banner__button--accept {
    background: #d4c4a8;
    color: #2a1a0a;
}

.cookie-banner__button:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
}
