/* ----------------------------- Reset veloce */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.5; color: #333; }

/* ----------------------------- HERO */
#hero {
  background: url('turn0image0.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.75);
  text-align: center;
}
#hero h1       { font-size: 3rem; margin-bottom: .3em; }
#hero p        { font-size: 1.2rem; margin-bottom: 1em; }
#hero .btn     { background: #ff8800; padding: .9em 2em; border-radius: 6px; color:#fff; text-decoration:none; }

/* ----------------------------- GALLERIA */
#gallery { padding: 3em 1em; background: #f5f5f5; max-width: 1200px; margin: 0 auto; }
#gallery h2 { text-align: center; margin-bottom: 1.5em; color:#444; font-size: 2rem; }

/* Foto grande */
.carousel     { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
#mainPhoto    { width: 100%; max-height: 70vh; object-fit: cover; transition: opacity .6s ease; }

/* Miniature */
.thumbs {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
  gap: 10px;
}
.thumbs img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: .8;
  transition: transform .3s, opacity .3s;
}
.thumbs img:hover        { transform: scale(1.05); opacity: 1; }
.thumbs img.active       { outline: 3px solid #ff8800; opacity: 1; }

/* ----------------------------- SEZIONI GENERICHE */
section      { padding: 2em 1em; max-width: 800px; margin: 0 auto; }
h2           { margin-bottom: .6em; }
ul           { list-style: disc inside; margin-bottom: 1em; }

/* ----------------------------- FOOTER */
footer {
  background: #222;
  color: #ddd;
  padding: 1em;
  text-align: center;
  font-size: .9em;
}


/* ===========================================================
   COOKIE BANNER – versione unica e centrata
=========================================================== */
:root{
  --cbg:#fff;          /* background */
  --ctxt:#333;         /* testo       */
  --caccent:#ff8800;   /* arancio per bottoni e check */
  --cshadow:0 8px 22px rgba(0,0,0,.25);
}
.cookie-banner{
  position:fixed;
  bottom:1.2rem;
  left:50%;
  transform:translateX(-50%);
  width:min(92vw,640px);
  background:var(--cbg);
  color:var(--ctxt);
  padding:1.4rem 1.2rem;
  border-radius:10px;
  box-shadow:var(--cshadow);
  z-index:9999;
  font-size:.95rem;
  line-height:1.5;
}
/* testo */
.cookie-banner p{margin:0 0 1rem 0;text-align:justify;}
/* lista opzioni in flex */
.cookie-options{
  display:flex;
  flex-wrap:wrap;
  gap:1rem 2rem;       /* riga,colonna */
  margin-bottom:1.2rem;
}
.cookie-options label{
  display:flex;
  align-items:center;
  gap:.5rem;
  cursor:pointer;
  user-select:none;
}
.cookie-banner input[type="checkbox"]{
  accent-color:var(--caccent);
  transform:scale(1.2);
}
/* bottone */
#cookie-save{
  display:inline-block;
  background:var(--caccent);
  border:none;
  color:#fff;
  padding:.75rem 1.8rem;
  border-radius:6px;
  font-size:1rem;
  cursor:pointer;
  transition:background .25s ease;
}
#cookie-save:hover,
#cookie-save:focus{
  background:darken(var(--caccent),8%);
  outline:none;
}
/* mobile tweaks */
@media(max-width:480px){
  .cookie-banner{
    font-size:.85rem;
    padding:1rem;
  }
  .cookie-options{
    flex-direction:column;
    gap:.6rem;
  }
  #cookie-save{width:100%;text-align:center;}
}