
:root{
  --white: #FFFFFF;
  --beige: #E0C3A5;
  --brand: #8FBFA8;
  --brand-dark: #5E8F79;
  --text: #2B2B2B;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }

html, body{
  overflow-x: hidden;
}

body{
  background: var(--white);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img{
  max-width: 100%;
  display: block;
}

/* BRAND */
.logo{
  height: 80px;
  width: auto;
  transition: transform .3s ease;
}
.logo:hover{ transform: scale(1.05); }

.brand-text{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.6rem);
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.2;
}

/* NAVBAR */
.navbar{
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224,195,165,.4);
}

.navbar-brand{
  min-width: 0;
}

.nav-link{
  color: var(--text) !important;
}
.nav-link:hover{
  color: var(--brand-dark) !important;
}

/* SEZIONI */
.section{
  padding: 80px 0;
}
.section-beige{
  background: var(--beige);
}

/* BOTTONI */
.btn-brand,
.btn-outline-brand,
.btn-outline-light{
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-brand{
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  transition: all .3s ease;
}
.btn-brand:hover{
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-outline-brand{
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .75rem 1.25rem;
  transition: all .3s ease;
}
.btn-outline-brand:hover{
  background: rgba(143,191,168,.2);
  color: var(--brand-dark);
}

/* HERO */
.hero{
  position: relative;
  min-height: 80vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(224,195,165,.15), rgba(224,195,165,.15)),
    url("../images/uliveto.jpg") center/cover no-repeat;
}

.hero h1{
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.hero p{
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero h1,
.hero p{
  text-shadow: 0 4px 15px rgba(0,0,0,.25);
}

/* CARD */
.card-boutique{
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.card-boutique .card-img-top{
  height: 240px;
  object-fit: cover;
}

.card-boutique .card-body{
  padding: 1.25rem;
}

/* FEATURE */
.feature-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  height: 100%;
}

.feature-title{
  font-weight: 600;
  margin-bottom: .5rem;
}

/* LINK */
.link-soft{
  color: var(--brand-dark);
  text-decoration: none;
}
.link-soft:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* FOOTER */
.footer{
  padding: 30px 0;
  background: var(--beige);
  border-top: 1px solid rgba(0,0,0,.05);
}

.footer a{
  color: var(--brand-dark);
  text-decoration: none;
}

.footer a:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* LINGUA */
.lang-switch{
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition: color .3s ease;
}
.lang-switch:hover{
  color: var(--brand-dark);
}
.lang-switch.active{
  color: var(--brand-dark);
}

.lang-sep{
  color: rgba(43,43,43,.6);
}

/* ====== GALLERY SLIDER ====== */
.photo-gallery{
  width: 100%;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 12px;
}

.gallery-slider{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.gs-viewport{
  overflow: hidden;
  border-radius: 14px;
  background: #0f0f10;
}

.gs-track{
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
  touch-action: pan-y;
}

.gs-slide{
  min-width: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  background: #0f0f10;
}

.gs-slide img{
  width: 100%;
  height: clamp(260px, 55vh, 620px);
  object-fit: contain;
  background: #0f0f10;
  cursor: zoom-in;
  display: block;
}

.gs-nav{
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.gs-nav:hover{
  transform: scale(1.04);
  background: rgba(0,0,0,0.7);
}
.gs-nav:active{
  transform: scale(0.98);
}
.gs-nav[disabled]{
  opacity: 0.35;
  cursor: not-allowed;
}

.gs-dots{
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.gs-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}

.gs-dot[aria-current="true"]{
  background: rgba(0,0,0,0.75);
}

/* ====== LIGHTBOX ====== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* sfondo */
.lb-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85); /* leggermente più scuro */
}

/* contenitore */
.lb-content{
  position: relative;
  z-index: 1;

  width: min(1200px, calc(100% - 24px));  /* più largo */
  height: min(92vh, 820px);               /* più alto */

  margin: 4vh auto 0;                     /* più centrato verticalmente */

  border-radius: 14px;
  overflow: hidden;
  background: #0f0f10;

  display: grid;
  grid-template-rows: 1fr auto;

  box-shadow: 0 20px 70px rgba(0,0,0,0.5);
}

/* immagine */
.lb-img{
  width: 100%;
  height: 100%;

  object-fit: contain;  /* 🔥 fondamentale: niente tagli */
  display: block;

  background: #0f0f10;
}

/* didascalia */
.lb-caption{
  padding: 10px 12px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  background: rgba(0,0,0,0.5);
}

/* chiudi */
.lb-close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 999px;

  background: rgba(0,0,0,0.6);
  color: #fff;

  font-size: 28px;
  cursor: pointer;
}

/* frecce */
.lb-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  border: 0;
  border-radius: 999px;

  background: rgba(0,0,0,0.6);
  color: #fff;

  font-size: 30px;
  cursor: pointer;
}

.lb-prev{ left: 10px; }
.lb-next{ right: 10px; }

.gs-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gs-slide img {
  width: 100%;
  height: clamp(260px, 55vh, 620px);
  object-fit: contain;
  display: block;
  background: #0f0f10;
  cursor: zoom-in;
}

/* ===== MOBILE ===== */
@media (max-width: 520px){
  .lb-content{
    width: calc(100% - 16px);
    height: 85vh;
    margin-top: 7vh;
  }

  .lb-close{
    width: 40px;
    height: 40px;
  }

  .lb-nav{
    width: 40px;
    height: 40px;
  }
}

/* SOCIAL FIXED */
.social-fixed{
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.social-fixed a{
  background: #5E8F79;
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  margin: 3px 0;
  font-size: 14px;
  border-radius: 8px 0 0 8px;
  transition: 0.3s;
}

.social-fixed a:hover{
  background: #9c7f47;
}

/* ====== TABLET ====== */
@media (max-width: 991.98px){
  .logo{
    height: 64px;
  }

  .brand-text{
    font-size: 1.15rem;
    letter-spacing: .4px;
  }

  .navbar-brand{
    max-width: calc(100% - 70px);
  }

  .navbar-collapse{
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .navbar-nav{
    gap: 6px;
  }

  .nav-link{
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .hero{
    min-height: 68vh;
    padding: 64px 18px;
  }

  .section{
    padding: 64px 0;
  }

  .card-boutique .card-img-top{
    height: 220px;
  }

  .gs-slide img{
    height: clamp(240px, 45vh, 500px);
  }

  .social-fixed{
    bottom: 12px;
    top: auto;
    right: 12px;
    transform: none;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 767.98px){
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo{
    height: 54px;
  }

  .brand-text{
    font-size: 1rem;
    letter-spacing: 0;
  }

  .navbar-brand{
    gap: 10px !important;
    max-width: calc(100% - 60px);
  }

  .navbar-nav{
    align-items: stretch !important;
  }

  .navbar-nav .nav-item{
    width: 100%;
  }

  .navbar-nav .btn-brand{
    width: 100%;
  }

  .hero{
    min-height: 60vh;
    padding: 56px 16px;
    background-position: center center;
  }

  .hero .d-flex{
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn{
    width: 100%;
  }

  .section{
    padding: 52px 0;
  }

  .feature-card{
    padding: 1.25rem;
  }

  .gallery-slider{
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .gs-nav{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .gs-slide img{
    height: clamp(220px, 40vh, 380px);
  }

  .lb-content{
    width: calc(100% - 16px);
    height: min(82vh, 680px);
    margin: 8vh auto 0;
    border-radius: 12px;
  }

  .lb-nav{
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .lb-prev{ left: 8px; }
  .lb-next{ right: 8px; }

  .lb-close{
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  .social-fixed{
    display: none;
  }
}

/* ====== SMALL MOBILE ====== */
@media (max-width: 575.98px){
  .section{
    padding: 48px 0;
  }

  .hero{
    min-height: 56vh;
    padding: 48px 14px;
  }

  .hero h1{
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero p{
    font-size: 1rem;
  }

  .card-boutique .card-img-top{
    height: 200px;
  }

  .photo-gallery{
    padding: 0 6px;
  }

  .gallery-slider{
    grid-template-columns: 36px 1fr 36px;
    gap: 6px;
  }

  .gs-nav{
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .gs-slide img{
    height: clamp(200px, 34vh, 320px);
  }

  .lb-content{
    height: min(78vh, 620px);
    margin-top: 10vh;
  }

  .footer{
    text-align: center;
  }
}

