/* =========================================================
   Bed And Wine – foglio di stile unico
   Palette: bordeaux / bordeaux scuro / oro (dal logo)
   ========================================================= */

/* ---------- Font (ospitati in locale, nessuna chiamata a Google) ---------- */
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bordeaux: #681a2f;
  --bordeaux-btn: #793347;
  --bordeaux-dark: #3e161d;
  --gold: #c9a66b;
  --gold-light: #e3cc9f;
  --text: #4a4848;          /* grigio testo (più scuro di Wix per leggibilità) */
  --text-light: #f3ece6;
  --white: #ffffff;
  --line: #e6e0dc;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --wrap: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Accessibilità ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--bordeaux); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #a87a2c; outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; }
.header-top {
  display: flex; align-items: center; justify-content: center; gap: 70px;
  padding: 40px 16px 26px; max-width: var(--wrap); margin: 0 auto; position: relative;
}
.brand-logo img { width: 182px; height: auto; }
.brand-name {
  font-family: var(--serif); color: var(--bordeaux); text-decoration: none;
  font-size: 35px; letter-spacing: .22em; line-height: 1.2; white-space: nowrap;
}
.header-tools { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 22px; }
.header-social { display: flex; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: .08em; color: #8a8585; }
.lang-switch a { color: #2f2e2e; text-decoration: none; padding: 4px 2px; font-weight: 400; }
.lang-switch a:hover { color: var(--bordeaux); }
.lang-switch a[aria-current="true"] { color: var(--bordeaux); border-bottom: 2px solid var(--bordeaux); }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul {
  list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center;
  max-width: var(--wrap);
}
.main-nav a {
  display: block; padding: 22px 40px 18px; text-decoration: none; color: #2f2e2e;
  font-size: 15px; border-top: 4px solid transparent; margin-top: 8px;
}
.main-nav a:hover { color: var(--bordeaux); }
.main-nav a[aria-current="page"] { color: var(--bordeaux); border-top-color: var(--bordeaux); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--bordeaux);
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; }

/* ---------- Icone social (segnaposto) ---------- */
.social { display: inline-flex; gap: 12px; }
.social-icon {
  display: inline-flex; width: 26px; height: 26px; color: var(--bordeaux); cursor: default;
}
.social-icon svg { width: 100%; height: 100%; fill: currentColor; }
.site-footer .social-icon { color: #fff; width: 31px; height: 31px; }

/* ---------- Pulsanti ---------- */
.btn-hero {
  display: inline-block; margin-top: 30px; padding: 12px 26px; border-radius: 6px;
  background: linear-gradient(180deg, #8c3d53 0%, var(--bordeaux-btn) 55%, #5e1f30 100%);
  color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 400; font-size: 17px;
  box-shadow: 0 3px 10px rgba(0,0,0,.35); letter-spacing: .02em;
}
.btn-hero:hover { background: var(--bordeaux); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 34px;
  border: 1px solid var(--bordeaux); color: var(--bordeaux); background: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 15px; text-decoration: none;
  letter-spacing: .04em;
}
.btn-outline:hover { background: var(--bordeaux); color: #fff; }
.btn-light {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px;
  background: #fff; color: var(--bordeaux); text-decoration: none; font-size: 17px; font-weight: 400;
  border: 1px solid #fff;
}
.btn-light:hover { background: transparent; color: #fff; }
.chev { font-size: .9em; }

/* ---------- Hero home ---------- */
.hero {
  position: relative; min-height: 578px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  border-bottom: 3px solid #fff; box-shadow: 0 4px 6px -2px rgba(0,0,0,.35);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); }
.hero-content { position: relative; z-index: 1; padding: 0 16px; }
.hero h1 {
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.55); letter-spacing: .01em;
}

/* ---------- Book your Experience ---------- */
.experience { padding: 46px 0 70px; text-align: center; }
.section-title {
  font-family: var(--serif); font-style: italic; color: var(--bordeaux);
  font-size: clamp(32px, 4vw, 50px); line-height: 1.25;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; max-width: 880px; margin-inline: auto; }
.card { display: flex; flex-direction: column; align-items: center; }
.card-img {
  padding: 6px; background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.18); width: 100%;
}
.card-img img { width: 100%; aspect-ratio: 270 / 241; object-fit: cover; }
.card h3 {
  font-family: var(--serif); font-style: italic; color: var(--bordeaux); font-size: 22px;
  margin: 28px 0 22px; padding-top: 6px;
}
.card p { font-size: 15px; line-height: 1.45; color: #2f2e2e; max-width: 250px; min-height: 66px; }
.card .btn-outline { margin-top: 20px; }

/* ---------- Mission / Join us (sezione bordeaux) ---------- */
.mission { background: var(--bordeaux-dark); color: var(--text-light); padding: 70px 0 120px; }
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 0;
  max-width: 940px; margin: 0 auto; padding: 0 16px;
}
.mission-grid > .col { display: flex; flex-direction: column; gap: 70px; }
.mission-grid > .col-right { gap: 70px; }
.eyebrow { font-family: var(--sans); font-weight: 400; letter-spacing: .2em; font-size: 14px; color: #fff; text-transform: uppercase; }
.mission h2 {
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold-light);
  margin: 18px 0 14px; letter-spacing: .03em; line-height: 1.35;
}
.mission p { font-size: 16px; line-height: 1.38; color: var(--text-light); }
.mission-text { padding: 0 20px 0 14px; }
.mission-tall img { width: 100%; aspect-ratio: 463 / 627; object-fit: cover; }
.joinus-img img { width: 100%; aspect-ratio: 447 / 461; object-fit: cover; }
.mission .btn-light { margin-top: 26px; }

/* ---------- Galleria slideshow ---------- */
.slideshow { position: relative; background: #000; }
.slideshow .slides { position: relative; overflow: hidden; }
/* Le foto sono sovrapposte: quella attiva compare con una dissolvenza */
.slideshow .slide {
  display: block; margin: 0; position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
.slideshow .slide.is-active {
  position: relative; opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s;
}
.slideshow .slide button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.slideshow .slide img { width: 100%; object-fit: cover; }
.slideshow.g1 .slide img { aspect-ratio: 448 / 311; }
.slideshow.g2 .slide img { aspect-ratio: 445 / 257; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.slide-nav:hover { background: rgba(0,0,0,.6); }
.slide-nav.prev { left: 10px; }
.slide-nav.next { right: 10px; }
.slide-pause {
  position: absolute; left: 10px; bottom: 8px; z-index: 2; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
}
.slide-pause:hover { background: rgba(0,0,0,.6); }
.slide-counter {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; color: #fff; font-size: 13px;
  background: rgba(0,0,0,.35); padding: 1px 8px; border-radius: 10px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 900; background: rgba(15, 5, 8, .94);
  display: none; align-items: center; justify-content: center; padding: 50px 60px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 36px; line-height: 1; padding: 10px;
}
.lightbox .lb-close { top: 10px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
body.no-scroll { overflow: hidden; }

/* ---------- Loghi partner ---------- */
.partners { padding: 72px 0 80px; text-align: center; }
.partners h2 { font-family: var(--serif); color: var(--bordeaux); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; }
.partners ul {
  list-style: none; padding: 0; margin: 46px auto 0; max-width: 1100px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px 46px;
}
.partners li img { height: 110px; width: auto; max-width: 200px; object-fit: contain; }
.partners li.wide img { height: 56px; max-width: 290px; }
/* Loghi partner principali: due posti affiancati; il primo logo sta a sinistra, il secondo posto è libero */
/* Le due colonne occupano i 2/3 centrali della pagina: i loghi stanno a 1/3 e a 2/3 della larghezza */
.partners ul:has(.partner-main) {
  display: grid; grid-template-columns: 1fr 1fr; width: 66.67%; max-width: none; gap: 30px; justify-items: center;
}
.partners li.partner-main a { display: block; transition: transform .2s ease; }
.partners li.partner-main a:hover { transform: scale(1.03); }
.partners li.partner-main { width: 100%; }
.partners li.partner-main a { width: fit-content; max-width: 100%; margin: 0 auto; }
.partners li.partner-main img { width: 280px; max-width: 100%; height: auto; }

/* ---------- Fascia foto prima del footer ---------- */
.photo-band {
  height: 387px; background: url("/assets/img/fascia-tavolata-vigneto.webp") center / cover no-repeat fixed;
}
@media (hover: none), (max-width: 900px) {
  .photo-band { background-attachment: scroll; height: 240px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bordeaux-dark); color: #fff; padding: 44px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 140px; max-width: 980px; margin: 0 auto; padding: 0 16px;
}
.newsletter p { font-size: 15px; margin-top: 14px; }
.newsletter label { display: block; font-size: 15px; margin: 6px 0 4px; }
.newsletter input {
  display: block; width: 100%; max-width: 378px; height: 35px; border: 1px solid #fff; padding: 4px 20px;
  font: inherit; font-size: 16px; color: #2f2e2e;
}
.newsletter button {
  display: block; width: 100%; max-width: 378px; height: 35px; margin-top: 14px; border: 1px solid #fff;
  background: #fff; color: #555; font: inherit; font-size: 16px; cursor: pointer;
}
.newsletter button:hover { background: var(--gold-light); }
.footer-links h2 {
  font-family: var(--serif); font-style: italic; font-size: 19px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.6); max-width: 284px;
}
.footer-links ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-links li { margin: 4px 0; }
.footer-links a { font-family: var(--serif); font-style: italic; font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--gold-light); }
.footer-bottom {
  display: flex; align-items: center; gap: 50px; max-width: 980px; margin: 54px auto 0; padding: 0 16px;
}
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 26px; text-decoration: none; white-space: nowrap; }
.footer-legal { font-size: 14px; letter-spacing: .03em; flex: 1; }
.footer-bottom .social { flex-direction: column; gap: 10px; }

.form-note {
  margin-top: 10px; padding: 10px 14px; font-size: 15px; border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.1);
}
.form-note[hidden] { display: none; }

/* ---------- Pagina Contatti ---------- */
.contact-hero { height: 400px; background: url("/assets/img/contact-sfondo.webp") center 55% / cover no-repeat; }
.contact { padding: 28px 0 76px; }
.contact h1 { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--bordeaux); letter-spacing: .03em; }
.contact .phone { margin: 120px 0 64px; font-size: 16px; color: #000; font-weight: 400; }
.contact .phone a { text-decoration: none; }
.contact .phone a:hover { text-decoration: underline; }
.contact-form { display: grid; grid-template-columns: 223px 1fr; gap: 0 18px; max-width: 874px; }
.contact-form > * { min-width: 0; }
.contact-form .fields > div { margin-bottom: 9px; }
.contact-form label { display: block; font-size: 14px; color: #605e5e; margin-bottom: 2px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #8f8a8a; padding: 6px 12px; font: inherit; font-size: 15px; color: #2f2e2e; background: #fff;
}
.contact-form input { height: 30px; }
.contact-form textarea { height: 148px; resize: vertical; }
.contact-form ::placeholder { color: var(--bordeaux); opacity: .85; }
.contact-form .actions { grid-column: 1 / -1; }
.contact-form button {
  width: 448px; max-width: 100%; height: 30px; margin-top: 4px; border: 0; background: var(--bordeaux);
  color: #fff; font: inherit; font-size: 15px; cursor: pointer;
}
.contact-form button:hover { background: var(--bordeaux-btn); }
.contact-form .form-note { background: #f7f1ee; color: #2f2e2e; }
.contact-form .form-note.is-error {
  margin: 0 0 12px; max-width: 448px; padding: 14px 16px; font-size: 16px;
  border-left: 4px solid #a1162b; background: #fdecee; color: #5a0f1c;
}
/* Riquadro di conferma dopo l'invio del modulo contatti */
.form-success {
  max-width: 874px; padding: 44px 32px 40px; text-align: center;
  background: #faf6f3; border: 1px solid #eadfd9; border-top: 4px solid var(--bordeaux);
}
.form-success[hidden] { display: none; }
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bordeaux); color: #fff; font-size: 32px; line-height: 64px;
}
.form-success h2 { font-family: var(--serif); font-style: italic; color: var(--bordeaux); font-size: 28px; margin-bottom: 12px; }
.form-success h2:focus { outline: none; }
.form-success p { font-size: 17px; color: #2f2e2e; max-width: 520px; margin: 0 auto; line-height: 1.5; }
.form-success button {
  margin-top: 26px; padding: 10px 26px; background: #fff; border: 1px solid var(--bordeaux);
  color: var(--bordeaux); font: inherit; font-size: 16px; font-weight: 400; cursor: pointer;
}
.form-success button:hover { background: var(--bordeaux); color: #fff; }
.contact-form[hidden] { display: none; }
.contact-form .privacy-note { font-size: 13px; color: #605e5e; margin: 2px 0 8px; max-width: 448px; }
.contact-form .privacy-note a { color: var(--bordeaux); }
.contact-form button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Pagina Esperienze ---------- */
.breadcrumb { padding: 20px 0 0; font-size: 16px; }
.breadcrumb ol { list-style: none; display: flex; gap: 10px; padding: 0 0 0 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 10px; color: #605e5e; }
.breadcrumb a { text-decoration: none; color: #2f2e2e; }
.breadcrumb a:hover { color: var(--bordeaux); }
.experiences-page h1 { text-align: center; font-size: 32px; color: #2f2e2e; margin: 26px 0 40px; font-weight: 300; }
.empty-box {
  border: 1px solid var(--line); min-height: 266px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 30px 16px; font-size: 17px; color: #2f2e2e; margin-bottom: 86px;
}

/* ---------- Pagine legali ---------- */
.legal { padding: 36px 0 70px; }
.legal .wrap { max-width: 960px; padding-left: 16px; }
.legal h1 {
  font-family: var(--display); font-weight: 500; color: var(--bordeaux); text-transform: uppercase;
  font-size: clamp(30px, 4vw, 45px); letter-spacing: .05em; text-align: center; margin-bottom: 14px;
}
.legal h2 { font-family: var(--serif); font-weight: 700; color: var(--bordeaux); font-size: 20px; margin: 10px 0 24px; }
.legal h3 { font-family: var(--serif); color: #4a4848; font-size: 16px; margin: 24px 0 8px; }
.legal p { font-size: 17px; line-height: 1.4; margin-bottom: 6px; }
.legal ul { margin: 0 0 6px; padding-left: 0; list-style: none; font-size: 17px; line-height: 1.4; }
.legal ul li::before { content: "• "; }
.legal strong { font-family: var(--serif); font-weight: 700; color: #4a4848; font-size: 16px; }
.legal a { color: var(--bordeaux); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .header-top { gap: 24px; padding: 22px 16px 18px; justify-content: space-between; }
  .brand-logo img { width: 110px; }
  .brand-name { font-size: 24px; letter-spacing: .16em; white-space: normal; text-align: center; }
  .header-tools { position: static; order: 3; gap: 14px; }
  .menu-toggle { display: block; order: 4; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 16px; margin: 0; border-top: 0; border-left: 4px solid transparent; text-align: center; }
  .main-nav a[aria-current="page"] { border-left-color: var(--bordeaux); background: #faf6f4; }
  .hero { min-height: 420px; }
  .cards { grid-template-columns: 1fr; max-width: 360px; gap: 46px; }
  .card p { min-height: 0; }
  .mission { padding: 50px 0 70px; }
  .mission-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .mission-grid > .col { display: contents; }
  .mission-text { padding: 0; }
  /* ordine su mobile: missione, foto, gallerie, poi "Join us" */
  .mission-text.about { order: 1; } .mission-tall { order: 2; } .slideshow.g1 { order: 3; }
  .slideshow.g2 { order: 4; } .joinus-img { order: 5; } .mission-text.joinus { order: 6; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-wrap: wrap; gap: 18px 30px; margin-top: 40px; }
  .footer-bottom .social { flex-direction: row; }
  .footer-legal { flex-basis: 100%; order: 2; }
  .footer-bottom .social { order: 3; }
  .contact-hero { height: 220px; }
  .contact .phone { margin: 40px 0 34px; }
  .contact-form { grid-template-columns: 1fr; }
  .partners ul { gap: 26px 30px; }
  .partners li img { height: 80px; max-width: 140px; }
  .partners li.wide img { height: 40px; max-width: 230px; }
  .partners ul:has(.partner-main) { grid-template-columns: 1fr; width: auto; }
  .partners li.partner-main img { width: auto; height: 220px; max-width: 100%; }
}
@media (max-width: 520px) {
  .header-top { gap: 10px; }
  .brand-logo img { width: 84px; }
  .brand-name { font-size: 19px; letter-spacing: .12em; }
  .header-social { display: none; }
  .lightbox { padding: 50px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow .slide, .slideshow .slide.is-active { transition: none; }
  html { scroll-behavior: auto; }
  .photo-band { background-attachment: scroll; }
}
