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

:root{
  --primary:#c79a2b;   /* giallo oro */
  --primary-dark:#a67c1f;
  --text:#2b2b2b;
  --muted:#777;
}

html{
  scroll-behavior:smooth;
}

/* BASE */
body {
  font-family:'Inter', sans-serif;
  background:#f3f6f2;
  color:var(--text);
  line-height: 1.6;
}

h1,h2,h3{
  font-family:'Lora', serif;
}

h1{
  margin-bottom:20px;
}

h2{
  margin-top:50px;
  margin-bottom:15px;
}

p{
  line-height:1.7;
}

.page-content > *{
  margin-bottom:20px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

a{
  color:#c79a2b;
  text-decoration:none;
  transition:all 0.2s ease;
}

a:hover{
  color:#a87f22;
}

a:hover:not(.btn) {
  color: #e2bd92;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* TOP BAR */
.topbar {
  background: #f7f5f2;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
  position: relative;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 400px;
}

/* CENTRO VERO */
.top-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.top-left a {
  color: #666;
  text-decoration: none;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* BANDIERE */
.lang-switch a {
  font-size: 2.1rem;
  text-decoration: none;
  opacity: 0.7;
}

.lang-switch a:hover {
  opacity: 1;
}

/* CTA PICCOLA (TOP) */
.top-cta {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

/* MAIN NAV */
.main-nav {
  background: #fff;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

/* LOGO GRANDE */
.logo img {
  height: 170px;
}

/* MENU */
.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav a:hover {
  color: var(--primary);
}

.camping-link {
  color: #666;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.camping-link:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  height: 65vh;
  background: url("/img/hero/hero.webp") center/cover no-repeat;
  background-position: center 90%;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  margin: auto;
  background: rgba(0, 0, 0, 0.35);
  padding: 25px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* CAMERE */

.camere {
  background: white;
}

.camere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.camera-card {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.camera-card:hover {
  transform: translateY(-5px);
}

.camera-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.camera-card h3 {
  padding: 15px 15px 5px;
  font-size: 1.2rem;
}

.camera-card p {
  padding: 0 15px 15px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .camere-grid {
    grid-template-columns: 1fr;
  }

  .camera-card img {
    height: 220px;
  }
}

/* RISTORANTE */

.ristorante {
  background:#f3f6f2;
}

.ristorante-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ristorante-text h2 {
  margin-bottom: 20px;
  margin-top: -30px;
}

.ristorante-text p {
  margin-bottom: 15px;
}

.ristorante-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .ristorante-layout {
    grid-template-columns: 1fr;
  }
}

/* EVENTI */

.eventi {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;

  background: url("/img/ristorante/eventi.webp") center/cover no-repeat;
}

.eventi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.eventi-content {
  position: relative;
  max-width: 700px;
  margin: auto;
}

.eventi h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.eventi p {
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.eventi .btn {
  background:#c79a2b;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 768px) {
  .eventi {
    padding: 70px 20px;
  }
}

/* TERRITORIO */

.valle {
  padding: 80px 20px;
  background: #f7f5f2;
}

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

.valle-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  margin-top: -10px;
}

.valle-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.valle-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .valle-grid {
    grid-template-columns: 1fr;
  }

  .valle {
    text-align: center;
  }
}

/* CONTATTI */

.cta {
  background:#ffffff;/* salvia sfumata elegante */
  padding: 80px 20px;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: auto;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary); /* marrone caldo */
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* FOOTER */
.footer {
  background: #2f2f2f;
  color: #ddd;
  padding: 60px 20px;
  border-top:1px solid rgba(255,255,255,0.08);
}

/* GRID PRINCIPALE */
.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* COLONNE */
.footer-col h3 {
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p {
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

/* LINK */
.footer a {
  color: #c79a2b;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* SOCIAL */
.footer-social {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-social a {
  color: #c79a2b;
  font-size: 1.2rem;
  transition: 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

.footer-legal {
  font-size: 0.85rem;
  color: #ffffff;
  margin-top: 10px;
  line-height: 1.5;
}

/* BOTTOM */
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* INTRO */

.intro{
  padding:80px 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.intro-text{
  max-width:500px;
  margin-top: -50px;
}

.intro-text h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2c2c2c;
}

.intro-text p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #555;
}

.intro-image img {
  width:100%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* TORNA SU */

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;

  background: var(--primary);
  color: white;

  border: none;
  border-radius: 50%;

  width: 45px;
  height: 45px;

  font-size: 18px;
  cursor: pointer;

  display: none;
  z-index: 999;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background: #60480d;;
  transform: translateY(-2px);
}

/* PAGINA CAMERE */

.camere-page .camera-detail{
  position:relative;
  padding-bottom:60px;
  margin-bottom:60px;
  margin-top:30px;
}

.camere-page h1{
  margin-bottom:20px;
}

.camere-page h2{
  margin-top:40px;
  font-size:1.7rem;
  font-weight:600;
  letter-spacing:0.3px;
}

.camere-page .camere-intro{
  margin-bottom:40px;
}

.camere-page .camera-detail::after{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:60%;
  height:1px;
  background:linear-gradient(to right, transparent, #ccc, transparent);
}

.camere-page .camera-image{
  position:relative;
  width:50%;
}

.camere-page .camera-image img{
  width:100%;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,0.18);
  transition:all 0.3s ease;
}

.camere-page .camera-image img:hover{
  transform:scale(1.02);
}

.camere-page .camera-text{
  width:50%;
}

.camere-page .camera-text h2{
  font-size:1.8rem;
  margin-bottom:10px;
  font-weight:600;
  color:#2b2b2b;
}

.camere-page h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
  border-radius:2px;
}

.camere-page .camera-text h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
  border-radius:2px;
}

.camere-page .camera-desc{
  color:#555;
  margin-bottom:20px;
  line-height:1.7;
  font-size:1.05rem;
}

/* LISTA */
.camere-page .camera-features{
  list-style:none;
  padding:0;
  margin-bottom:20px;
}

.camere-page .camera-features li{
  margin-bottom:10px;
  font-size:0.95rem;
  display:flex;
  align-items:center;
  gap:8px;
}

/* BUTTON */
.camere-page .btn{
  display:inline-block;
  margin-top:15px;
  padding:12px 26px;
  background:var(--primary);
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  font-weight:500;
  transition:all 0.25s ease;
}

.camere-page .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

/* REVERSE */
.camere-page .camera-detail.reverse{
  flex-direction:row-reverse;
}

/* BADGE */
.camere-page .badge{
  position:absolute;
  top:15px;
  left:15px;
  background:#c79a2b;
  color:#fff;
  font-size:0.8rem;
  padding:6px 12px;
  border-radius:6px;
  font-weight:600;
}

hr{
  display:none;
}

/* MOBILE */
@media(max-width:768px){

  .camere-page .camera-detail{
    flex-direction:column;
    text-align:center;
    border-bottom:1px solid rgba(0,0,0,0.08);
    padding-bottom:60px;
    margin-bottom:60px;
  }

  .camere-page .camera-detail.reverse{
    flex-direction:column;
  }

  .camere-page .camera-image,
  .camere-page .camera-text{
    width:100%;
  }

}

/* PAGINA RISTORANTE */

.ristorante-page .ristorante-intro{
  color:#777;
  margin-bottom:40px;
}

/* HERO */
.ristorante-page .ristorante-hero{
  display:flex;
  gap:50px;
  align-items:center;
  margin:60px 0;
}

.ristorante-page .ristorante-hero img{
  width:50%;
  border-radius:16px;
  box-shadow:0 25px 60px rgba(0,0,0,0.2);
}

.ristorante-page .ristorante-text{
  width:50%;
}

.ristorante-page .ristorante-text p{
  margin-bottom:15px;
  line-height:1.6;
  color:#444;
}

/* GRID PIATTI */
.ristorante-page .piatti-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  margin:40px 0;
}

.ristorante-page .piatti-grid > *{
  width:100%;
}

.ristorante-page .piatti-grid img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  cursor:pointer;
  transition:all 0.3s ease;
}

.ristorante-page .piatti-grid img:hover{
  transform:scale(1.08);
  box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

.ristorante-page .ristorante-text{
  max-width:500px;
}

.ristorante-page h2{
  margin-top:60px;
  position:relative;
}

.ristorante-page h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
}

.ristorante-page .btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 22px;
  background:var(--primary);
  color:#fff !important;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.3s ease;
}

.ristorante-page .btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}

/* EVENTI */
.ristorante-page .eventi-box{
  background:#f4f1ea;
  border-radius:12px;
  padding:30px;
  margin-top:20px;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

/* MOBILE */
@media(max-width:768px){

  .ristorante-page .ristorante-hero{
    flex-direction:column;
    text-align:center;
  }

  .ristorante-page .ristorante-hero img,
  .ristorante-page .ristorante-text{
    width:100%;
  }

  .ristorante-page .piatti-grid{
    grid-template-columns:1fr 1fr;
  }

}

/* EVENTI PAGINA*/

.eventi-page .eventi-intro{
  color:#555;
  margin-bottom:20px;
  max-width:600px;
}

.eventi-page .eventi-hero{
  display:flex;
  align-items:center;
  gap:50px;
  margin:50px 0;
}

.eventi-page .eventi-hero img{
  width:50%;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

.eventi-page .eventi-text{
  width:50%;
  max-width:500px;
}

.eventi-page .eventi-text p{
  margin-bottom:15px;
  color:#444;
  line-height:1.6;
}

.eventi-page h2{
  margin-top:60px;
}

.eventi-page p{
  line-height:1.7;
}

.eventi-page .btn{
  display:inline-block;
  margin-top:20px;
  padding:14px 26px;
  background:var(--primary);
  color:#fff !important;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  transition:all 0.3s ease;
}

.eventi-page .btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.eventi-page h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
}

/* GRID EVENTI */

.eventi-page .eventi-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  margin:40px 0;
}

.eventi-page .evento-card{
  background:#fff;
  padding:25px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  transition:all 0.3s ease;
}

.eventi-page .evento-card:hover{
  transform:translateY(-5px);
}

/* CTA */

.eventi-page .eventi-cta{
  margin:20px 0;
  color:#555;
}

/* MOBILE */

@media(max-width:768px){

  .eventi-page .eventi-hero{
    flex-direction:column;
  }

  .eventi-page .eventi-hero img,
  .eventi-page .eventi-text{
    width:100%;
  }

  .eventi-page .eventi-grid{
    grid-template-columns:1fr;
  }

}

/* VALLE STURA PAGINA*/

.valle-stura-page .valle-intro{
  color:#555;
  max-width:600px;
  margin-bottom:30px;
  font-size:1.1rem;
}

/* HERO */

.valle-stura-page .valle-hero img{
  width:100%;
  height:300px; /* ↓ meno aggressiva */
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,0.18);
  margin:30px 0 40px;
}

/* TESTI */

.valle-stura-page p{
  max-width:650px;
  line-height:1.75;
  margin-bottom:18px;
  color:#444;
}

.valle-stura-page h1{
  margin-bottom:20px;
}

.valle-stura-page h2{
  margin-top:60px;
}

/* GRID ATTIVITÀ */

.valle-stura-page .valle-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  margin:40px 0;
}

.valle-stura-page .valle-card{
  background:#fff;
  padding:22px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
  transition:all 0.3s ease;
}

.valle-stura-page .valle-card:hover{
  transform:translateY(-5px);
}

/* TITOLI */

.valle-stura-page h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
}

.valle-stura-page .btn{
  display:inline-block;
  margin-top:25px;
  padding:14px 26px;
  background:var(--primary);
  color:#fff !important;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  transition:all 0.3s ease;
}

.valle-stura-page .btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* MOBILE */

@media(max-width:768px){

  .valle-stura-page .valle-grid{
    grid-template-columns:1fr;
  }

  .valle-stura-page .valle-hero img{
    height:220px;
  }

}

/* CONTATTI PAGE */

.contatti-page .contatti-actions{
  margin-top:30px;
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.contatti-page .btn{
  display:inline-block;
  padding:14px 26px;
  border-radius:10px;
  font-weight:500;
  font-size:0.95rem;
}

.contatti-page .contatti-grid{
  display:block;
  max-width:600px;
}

.contatti-page a{
  color: var(--primary);
  text-decoration:none;
}

.contatti-page a[href^="tel"]{
  font-weight:600;
  font-size:1.1rem;
}

.contatti-page a:hover{
  text-decoration: underline;
}

.contatti-page h3{
  margin-top:25px;
}

.contatti-page h1{
  margin-bottom:20px;
}

.contatti-page h2{
  margin-top:60px;
  margin-bottom:15px;
}

.contatti-page h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--primary);
  margin-top:8px;
}

.contatti-page .contatti-info{
  border-bottom:1px solid rgba(0,0,0,0.08);
  padding-bottom:30px;
}

/* MAPPA */

.mappa{
  margin-top:40px;
}

.mappa iframe{
  width:100%;
  height:350px;
  border:none;
  border-radius:12px;
  margin-top:30px;
}

/* MOBILE */

@media(max-width:768px){
  .contatti-page .contatti-grid{
    flex-direction:column;
    gap:30px;
  }

  .contatti-page .contatti-actions{
    align-items:flex-start;
  }
}

.contatti-page .btn {
  color: #fff;
}

.contatti-page .btn:hover {
  color: #fff;
}

.btn{
  display:inline-block;
  margin-top:15px;
  padding:12px 22px;
  background:#c79a2b;
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:500;
  transition:all 0.3s ease;
}

.btn:hover {
  background: var(--primary-dark);
  color: #fff; /* CRITICO */
}

/* PAGINA GALLERY */

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid a {
  display: block !important;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.not-flex {
  display: grid !important;
}