/* ===============================
   Cantine Cerresi - Stile personalizzato
================================== */
:root {
  --colore-primario: #7a2423;
  --colore-secondario: #F7A001;
  --colore-bianco: #fff;
  --colore-nero: #000;
  --colore-grigio: #ededed;
}

/* ===== Reset e base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  scroll-behavior: smooth;
  padding-top: 80px;
  /* spazio per navbar fissa */
  color: #000;
  overflow-x: hidden;
  /* Previene scroll orizzontale causato da 100vw */
}

/* Titolo e testo */
h2 {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.8rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

.bg-light {
  background-color: var(--colore-grigio);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 3rem;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--colore-bianco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo img {
  height: auto;
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 1rem;
}

.nav-links a {
  font-size: 1rem;
  line-height: 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--colore-nero);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #9c9c9c;
}

/* Pulsanti Navbar */
.navbar .btn {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
  text-decoration: none;
  color: var(--colore-bianco);
  background-color: var(--colore-primario);
  border: none;
  transition: background-color 0.2s ease;
}

.navbar .btn-app {
  background-color: var(--colore-primario);
}

.navbar .btn-app:hover {
  background-color: #8c2b2a;
}

.navbar .btn-eshop {
  background-color: var(--colore-secondario);
}

.navbar .btn-eshop:hover {
  background-color: #fdaa11;
}

/* Hamburger menu mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #1c1c1c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span {
  background-color: #9c9c9c;
}

.nav-links.active {
  display: block;
  text-align: right;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1.5rem 2rem 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media(max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ===============================
   HERO (Default)
=============================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--colore-bianco);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero .hero-content {
  position: relative;
  max-width: 900px;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-family: "Inter Tight", sans-serif;
  font-size: 3rem;
  line-height: 3rem;
  margin-bottom: 1rem;
}

.hero .hero-text {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.btn-hero {
  color: #fff;
  background: none;
  border: 3px solid #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  color: gainsboro;
  border-color: gainsboro;
}

/* ===============================
   VARIANTI HERO
=============================== */
.hero.hero-small {
  min-height: 40vh;
  background-position: center 30%;
  padding: 2.5rem 1.5rem 0.5rem 1.5rem;
}

/* ===============================
   LAYOUT GENERALE (Consolidato)
=============================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.bg-light-custom {
  background-color: var(--colore-grigio);
  width: 100%;
  max-width: 100%;
}

.no-padding-top {
  padding-top: 0;
}


/* ===============================
   ANNUNCIO
=============================== */
.sezione-annuncio {
  position: relative;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

.sezione-annuncio .topbg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ededed 40%, #ffffff 0%);
  z-index: 0;
}

/* ===== Annuncio con icona stile app ===== */

.annuncio-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  background-color: #ffdfa3;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

/* Icona in alto a destra */
.flag-icon {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  z-index: 3;
}

.flag-icon img {
  width: 100%;
  height: auto;
}


/* ===============================
   SEZIONI GENERALI
=============================== */
.sections-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  margin: 1rem auto;
  max-width: 90%;
}

.section-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
}

.section-item h2 {
  font-family: "Inter Tight", sans-serif;
  margin-top: 0.5rem;
}

.section-item p {
  font-family: "Inter Tight", sans-serif;
  text-align: center;
}

.section-image {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

@media(max-width: 992px) {
  .sections-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.btn-primary {
  color: white;
  background-color: var(--colore-secondario);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  display: inline-block;
  width: auto;
  text-decoration: none;
  margin: 2rem auto 0 auto;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #ffb423;
}

/* ===============================
   CICLO VIRTUOSO
=============================== */
.ciclo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: center;
}

.ciclo-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

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

/* ===============================
   APP STORE
=============================== */
.sezione-app {
  position: relative;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.sezione-app .topbg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ededed 40%, #ffffff 0%);
  z-index: 0;
}

.app-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background-color: var(--colore-primario);
  color: #fff;
  padding: 2rem 1.8rem;
  width: 80%;
  max-width: 800px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.app-box:hover {
  background-color: #8c2b2a;
}

.app-text h2 {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.app-icon {
  margin-left: 1.5rem;
  max-width: 100px;
}

@media(max-width: 768px) {
  .app-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon {
    margin: 1.2rem auto 0rem auto;
  }
}

/* ===============================
   FOOTER
=============================== */
.footer {
  background-color: #1c1c1c;
  color: #fff;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col img {
  height: 80px;
  margin-top: 1.5rem;
}

.footer-col h3 {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

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

.footer-contacts li,
.footer-contacts span,
.footer-contacts strong {
  color: #ccc;
}

.footer-contacts li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contacts li img {
  height: 20px;
  margin-top: 2px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social img {
  height: 35px;
  margin-top: 0;
}

.footer hr {
  border-color: #444;
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-bottom a {
  margin-left: 1rem;
  color: #aaa;
  transition: color 0.3s ease;
}

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

@media(max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* UTILITY CLASSES */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .25);
}

.form-control-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

.text-white {
  color: #fff !important;
}

.text-center {
  text-align: center !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}