/* ===========================
   PALETTE COLORI
   =========================== */

:root {
  --blu-notte: #0A1A2F;
  --blu-acciaio: #1F3A56;
  --azzurro: #DDE7F0;
  --bianco: #F8F8F8;
  --oro: #C8aa50;
  --ciliegia: #7B1B2B;
}
/* ===========================
  slider show
   =========================== */
.slider-frame {
    width: 600px; /* Larghezza del frame */
    height: 300px; /* Altezza del frame */
    margin: 0 auto; /* Centra il frame nella pagina */
    overflow: hidden; /* Nasconde le immagini fuori dal frame */
    position: relative;
}

.slide-images {
    width: 100%;
   /* height: 100%;*/
    position: absolute;
    /* Richiama l'animazione chiamata 'sliding' */
    animation: sliding 3s infinite; 
}

.slide-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adatta l'immagine senza deformarla */
    position: absolute;
    top: 0;
    left: 0;
}

/* Definizione dell'animazione */
@keyframes sliding {
    0% { left: 0%; }
    30% { left: 0%; }
    33% { left: -100%; }
    63% { left: -100%; }
    66% { left: -200%; }
    96% { left: -200%; }
    100% { left: 0%; }
}





/* ===========================
   BASE
   =========================== */

body {
  font-family: system-ui, sans-serif;
  background-color: var(--blu-notte);
  color: var(--bianco);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--oro);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===========================
   HEADER
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 26, 47, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-cherry {
  width: 34px;
  height: 34px;
  
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo-ciliegiadoro {
  width: 250px;
  height: 80px;

  object-fit: cover;
  
}

.logo-main {
  font-family: "Georgia", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--oro);
}

/* MENU OVALE */
.menu-pill {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--blu-acciaio);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.menu-pill li a {
  color: var(--bianco);
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: 0.2s ease;
}

.menu-pill li a:hover {
  background-color: var(--oro);
  color: var(--blu-notte);
}

/* ===========================
   mie
   =========================== 

  }*/

  section[id] {
  scroll-margin-top: 100px; /* altezza del tuo header */
}

   
/* ===========================
   SEZIONI GENERALI
   =========================== */

.section-title {
  font-family: "Georgia", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--oro);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--azzurro);
  margin-bottom: 1.5rem;
}
.section-divider.fancy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  margin: 2rem auto;
  width: 80%;
}

.section-divider.fancy::before,
.section-divider.fancy::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.section-divider.fancy img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

section:target {
  background: rgba(0,0,0,0.03);
  padding: 4rem 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}



.two-columns {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2rem;
}
.two-columns img { 
  width: 100%; 
  height: auto; 
  object-fit: cover; 
  border-radius: 8px; /* opzionale */ }

.section-divider {
  width: 60px; 
  height: 2px; 
  background: #c49b63; 
  /* un colore caldo */ 
  margin: 3rem auto; }



.image-card img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===========================
   BOTTONI
   =========================== */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background-color: var(--oro);
  color: var(--blu-notte);
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background-color: #b48c4d;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem 2.5rem;
  background-color: #0A1A2F;
  color: var(--bianco);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  font-family: "Georgia", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oro);
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #8f8577;
}
/* ===========================
   FIX PER DISPOSITIVI MOBILI
   =========================== */

@media (max-width: 768px) {
  
  /* 1. Trasformo le due colonne in una singola colonna */
  .two-columns, .two-cols, .footer-inner {
    grid-template-columns: 1fr !important; /* Forza una colonna sola */
    display: grid;
    gap: 1.5rem;
  }

  /* 2. Sistemazione Slider (il problema principale) */
  .slider-frame {
    width: 100% !important; /* Non più 600px fissi */
    height: auto;
    aspect-ratio: 16 / 9; /* Mantiene la proporzione corretta */
  }

  /* 3. Sistemazione Header e Logo */
  .nav-container {
    flex-direction: column; /* Logo sopra e menu sotto */
    gap: 1rem;
  }

  .logo-ciliegiadoro {
    width: 180px; /* Rimpicciolisco il logo su mobile */
    height: auto;
  }

  /* 4. Menu a "pillola" adattivo */
  .menu-pill {
    flex-wrap: wrap; /* Se non ci stanno i link, vanno a capo */
    justify-content: center;
    border-radius: 20px; /* Meno arrotondato per risparmiare spazio */
    gap: 0.5rem;
    padding: 0.8rem;
  }

  .menu-pill li a {
    font-size: 0.85rem; /* Testo leggermente più piccolo */
  }

  /* 5. Padding generale per non toccare i bordi del telefono */
  main {
    padding: 1rem 1rem;
  }

  /* 6. Divisori grafici */
  .section-divider.fancy {
    gap: 2rem; /* Riduco lo spazio tra le ciliegie e le linee */
    width: 95%;
  }

  /* 7. Bottoni più grandi per il tocco (Touch Friendly) */
  .btn {
    display: block;
    text-align: center;
    margin: 10px 0;
  }
}
