/* Contemporary Barn – simple, modern, static */

/* Google Font (optional). If blocked, system font fallback. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#ffffff;
  --panel:#f7f4ee;
  --text:#1f1b16;
  --muted:#6f6a60;
  --line:rgba(31,27,22,.10);
  --accent:#8b5a2b;      /* warm wood */
  --accent2:#3f6f4a;     /* nature green */
  --shadow: 0 18px 50px rgba(31,27,22,.10);
  --radius: 18px;
  --max: 1080px;

  /* subtle warm page background */
  --bg-grad:
    radial-gradient(1200px 600px at 20% -10%, rgba(139,90,43,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(63,111,74,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfaf7 55%, #ffffff);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg-grad);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}

.container{width:min(var(--max), 92vw); margin:0 auto}
.section{padding:72px 0}
.section-header{margin-bottom:22px}
.section-header h2{margin:0 0 8px; font-size:clamp(1.35rem, 2vw, 1.75rem)}
.section-header p{margin:0; color:var(--muted)}

/* Header */
#site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(247,244,238,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}


/* ===== Brand logo in header ===== */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  line-height:0; /* evita spazi strani sotto l'immagine */
}

.brand-logo{
  height: 52px;       /* desktop */
  width: auto;
  display:block;
}

/* evita che l’header si “muova” su caricamento */
#topbar{
  min-height: 72px;
  display:flex;
  align-items:center;
}

#topbar .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}



#primary-nav{border-top:1px solid var(--line)}
#primary-nav .container{display:flex; gap:10px; padding:10px 0; overflow:auto}
.nav-link{
  padding:10px 12px; border-radius:999px;
  color:var(--muted);
  white-space:nowrap;
}
.nav-link:hover{color:var(--text); background:rgba(255,255,255,.06)}
.nav-cta{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(63,111,74,.25);
  background: rgba(63,111,74,.10);
}


/* Hero */
.hero{padding-top:34px}
.hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:stretch}
@media (max-width: 880px){.hero-grid{grid-template-columns:1fr}}

#hero-title{font-size:clamp(2rem, 4.2vw, 3.2rem); margin:0 0 10px; letter-spacing:-.02em}
#hero-tagline{margin:0 0 12px; color:var(--muted); font-size:1.05rem}
#hero-intro{margin:0 0 18px; color:var(--text); max-width:62ch}

.hero-media{
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.hero-media img{width:100%; height:100%; object-fit:cover; min-height:340px}

/* Buttons */
.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), #a06a33);
  border:1px solid rgba(139,90,43,.35);
  color:#fff;
  font-weight:700;
  box-shadow: 0 10px 30px rgba(139,90,43,.18);
}
.button:hover{filter:brightness(1.02)}

.button:hover{filter:brightness(1.06)}
.button-secondary{
  background: #ffffff;
  border:1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.cta-row{display:flex; flex-wrap:wrap; gap:10px}

.badges{list-style:none; padding:0; margin:14px 0 0; display:flex; flex-wrap:wrap; gap:8px}
.badges li{
  padding:7px 10px; border:1px solid var(--line);
  border-radius:999px; font-size:.9rem; color:var(--muted);
  background: rgba(247,244,238,.85);
}

/* Cards */
.cards-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}
@media (max-width: 880px){.cards-grid{grid-template-columns:1fr}}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--panel);
  padding: 16px;
}
.card-media{background: #fff}
.card-media img{height:260px; width:100%; object-fit:cover}
.card-content{padding: 12px 0 0;}
.card-content h3{margin:0 0 10px; font-size:1.35rem}
.card-content p{margin:0 0 14px; color:var(--muted); line-height:1.55}

.feature-list{list-style:none; padding:0; margin:0 0 14px; display:flex; flex-wrap:wrap; gap:8px}
.feature-list li{padding:7px 10px; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:.9rem}

/* Two column */
.two-col{display:grid; grid-template-columns:1.1fr .9fr; gap:16px; align-items:start}
@media (max-width: 880px){.two-col{grid-template-columns:1fr}}
.media{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.media img{height:100%; min-height:280px; object-fit:cover}

.icon-list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.icon-list li{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
}

/* CTA section */
.section.cta{
  background: linear-gradient(
    135deg,
    rgba(62, 84, 66, .22),
    rgba(96, 118, 92, .10)
  );
  border-top: 1px solid rgba(62, 84, 66, .30);
  border-bottom: 1px solid rgba(62, 84, 66, .30);
}


.small{color:var(--muted); font-size:.92rem}

/* Footer */
.footer{padding:34px 0}
.footer-grid{display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:18px; align-items:start}
@media (max-width: 880px){.footer-grid{grid-template-columns:1fr}}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:10px;
  background: var(--panel);
  border:1px solid var(--line);
  padding:10px 12px; border-radius:10px;
}
.skip-link:focus{left:10px}

.center{min-height:100vh; display:flex; align-items:center; justify-content:center}



/* ===== Galleries ===== */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.gallery-wide{
  margin-top:20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px){
  .gallery-wide{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 768px){
  .gallery{grid-template-columns: 1fr;}
  .gallery-wide{grid-template-columns: 1fr;}
  .card{
    padding: 14px;
  }

}



/* ===== Minimal header + full-bleed hero (Vecchia Sorni-inspired) ===== */
#site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* ===== Topbar: mark left, wordmark center, languages right ===== */
#topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* simbolo */
.brand-mark{
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand-mark img{
  height: 60px;      /* simbolo abbastanza presente */
  width: auto;
  display: block;
}

/* wordmark centrale */
.brand-word{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
  flex: 1;                 /* prende lo spazio centrale */
  min-width: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
}

.brand-title{
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-subtitle{
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* lingue */
#lang-switch{
  display: flex;
  gap: 10px;
  font-family: "Cormorant Garamond", serif;
}

#lang-switch a{
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

#lang-switch a:hover{
  color: var(--text);
  border-bottom-color: rgba(139,90,43,.25);
}

#lang-switch a.is-active{
  color: var(--text);
  border-bottom-color: rgba(139,90,43,.45);
}

#primary-nav{ border-top: 0; background: transparent; }

#primary-nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}

#primary-nav .nav-link{
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

#primary-nav .nav-link:hover{
  color: var(--text);
  border-bottom-color: rgba(139,90,43,.25);
}

#primary-nav .nav-cta{
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139,90,43,.25);
  background: rgba(139,90,43,.08);
  color: var(--text);
}

#primary-nav .nav-cta:hover{ background: rgba(139,90,43,.12); }

.hero{ padding: 0; }
.hero-grid{ display: block; }

#hero-media{
  position: relative;
  width: 100%;
  margin: 0;
}

#hero-image{
  width: 100%;
  height: min(88vh, 820px);
  object-fit: cover;
  border-radius: 0;
  display: block;
}

#hero-content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 0 40px; /* solo verticale */
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: #fff;
}

#hero-content .container{
  max-width: var(--max);   /* stessa larghezza del resto del sito */
  margin: 0 auto;
  padding: 0 24px;        /* 👉 padding laterale reale */
}


#hero-title{
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: .02em;
  color: #fff;
}

#hero-tagline{
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,.92);
}

#hero-intro{
  margin: 6px 0 0;
  max-width: 64ch;
  color: rgba(255,255,255,.88);
}

#hero-cta{ margin-top: 12px; }

#hero-badges{ margin-top: 10px; }

#hero-badges li{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}

@media (max-width: 768px){
  #primary-nav .container{justify-content: flex-start;}
  #primary-nav .nav-cta{margin-left: 0;}

  #hero-image{height: 72vh;}
  #hero-content{padding: 22px 0 26px;}

  #hero-content .container{
    padding: 0 18px;   /* padding laterale mobile */
  }
    #topbar{
    padding: 10px 0;
  }
  .brand-mark img{ height: 46px; }
  .brand-title{ font-size: 22px; }
  .brand-subtitle{ font-size: 12px; }
  #lang-switch a{ font-size: 12px; }
}

/* Intro subito sotto hero */
.lede{
  padding-top: 42px;
}

.lede h2{
  margin: 0 0 10px;
  font-size: 26px;
}

.lede p{
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.7;
}

.lede .badges{
  margin-top: 16px;
}

.lede .badges li{
  background: rgba(247,244,238,.85);
  border: 1px solid var(--line);
  color: var(--text);
}

.why-text p{
  margin: 0 0 12px;
  max-width: 72ch;
  line-height: 1.75;
  color: var(--muted);
}
.why-text p:last-child{ margin-bottom: 0; }

/* ===== Lightbox with navigation ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.lightbox.active{
  opacity: 1;
  pointer-events: auto;
}

.lightbox img{
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close{
  position: fixed;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

.lightbox-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev{ left: 18px; }
.lightbox-next{ right: 18px; }

.lightbox-nav:hover{
  background: rgba(255,255,255,.14);
}

@media (max-width: 768px){
  .lightbox-nav{ width: 40px; height: 40px; }
}


.button.airbnb{
  background: #E85A5A;
  color: #fff;
}
.button.airbnb:hover{
  background: #D84C4C;
}

.button.booking{
  background: #1F3A5F;
  color: #fff;
}
.button.booking:hover{
  background: #162C4A;
}

.surroundings-text p{
  margin: 0 0 14px;
  max-width: 72ch;
  line-height: 1.75;
  color: var(--muted);
}
.surroundings-text p:last-child{
  margin-bottom: 0;
}

.chi-sono-text p{
  margin: 0 0 14px;
  max-width: 72ch;
  line-height: 1.75;
  color: var(--muted);
}
.chi-sono-text p:last-child{
  margin-bottom: 0;
}