/* ===== Base ===== */
:root{
  --brand:#007bff;
  --brand-light:#3399ff;
  --brand-dark:#0a3d73;
  --text:#222;
  --muted:#666;
  --white:#fff;
  --gray:#f5f6f8;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Poppins',sans-serif;color:var(--text);background:#fff;overflow-x:hidden}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* ===== Topbar ===== */
.topbar{background:var(--brand-light);color:#fff;font-size:.95rem}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0}
.topbar-contacts{display:flex;align-items:center;gap:.75rem}
.topbar a{color:#fff;font-weight:500}
.sep{opacity:.7}

/* ===== Header ===== */
.header{background:#010e26;border-bottom:1px solid #eee;box-shadow:0 2px 12px rgba(0,0,0,.25);}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0}
.logo{height:140px}
.menu{display:flex;gap:1.5rem}
.menu a{color:#333;font-weight:500;transition:color .2s}
.menu a:hover{color:var(--brand)}
.btn{display:inline-block;padding:.7rem 1.4rem;border-radius:.5rem;border:0;cursor:pointer;font-weight:600}
.btn.primary{background:var(--brand);color:#fff}
.btn.primary:hover{background:#0069d9}
.btn.white{background:#fff;color:var(--brand)}
.btn.white:hover{background:#eef4ff}
.btn.outline{background:transparent;border:1px solid var(--brand);color:var(--brand)}
.btn.outline:hover{background:var(--brand);color:#fff}

/* Header dark theme */
.header{background:#010e26; border-bottom: none;box-shadow:0 2px 12px rgba(0,0,0,.25);}
.header .menu a{color:#fff}
.header .menu a:hover{color:var(--brand-light)}
.header .btn.primary{box-shadow:0 2px 8px rgba(0,0,0,.15)}
/* Booking form */
.booking-section{background:var(--gray); padding:4rem 0}
.booking-inner h2{margin-top:0}
.booking-inner .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.booking-inner input,.booking-inner textarea{width:100%;padding:.7rem .9rem;border:1px solid #ddd;border-radius:.5rem;font-family:inherit}
@media(max-width:768px){
  .booking-inner .grid{grid-template-columns:1fr}
}


/* ===== Slider ===== */
.hero-slider{position:relative;height:90vh;width:100%;overflow:hidden;background:#000}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 900ms ease}
.slide.active{opacity:1;z-index:1}
.slide-img{position:absolute;inset:0;margin:auto;width:100%;height:100%;object-fit:contain;background:#000;transform-origin:center center}
/* Animazione zoom naturale senza crop: 0.95 -> 1.0 */
.slide.active .slide-img{animation:softZoom 8s ease-in-out forwards}
@keyframes softZoom{
  0%{transform:scale(0.95)}
  100%{transform:scale(1)}
}

/* Slider controls */
.nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.35);color:#fff;border:none;font-size:2rem;cursor:pointer;padding:.5rem 1rem;border-radius:50%}
.nav.prev{left:28px}.nav.next{right:28px}
.nav:hover{background:rgba(0,0,0,.5)}
.dots{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:10}
.dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:background .25s, transform .25s}
.dot.active{background:#fff;transform:scale(1.1)}

/* ===== Offerte ===== */
.offers{background:#fff;padding:4rem 0}
.sec-head{text-align:center;margin-bottom:2.5rem}
.sec-head h2{margin:0 0 .5rem;font-size:1.9rem}
.sec-head p{margin:0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.card{background:#fff;border-radius:1rem;box-shadow:0 8px 24px rgba(0,0,0,.05);overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;height:260px;object-fit:contain;background:#fff}
.card h3{margin:1rem 1rem 0;font-size:1.1rem}
.price{margin:.25rem 1rem 1rem;color:var(--brand);font-weight:700}
.card .btn{align-self:center;margin:1rem 0 1.2rem}

/* ===== Come funziona ===== */
.how{background:var(--gray);padding:4rem 0}
.steps{display:flex;gap:2rem;justify-content:space-between}
.step{flex:1;background:#fff;border-radius:1rem;padding:1.5rem;box-shadow:0 8px 24px rgba(0,0,0,.05);text-align:center}
.step-icon{font-size:1.4rem;color:var(--brand);font-weight:700;margin-bottom:.5rem}
.step h3{margin:.2rem 0 .4rem;font-size:1.2rem}
.step p{margin:0;color:#444}

/* ===== Contattaci CTA ===== */
.contact-cta{background:var(--brand);color:#fff;padding:3.5rem 0;text-align:center}
.contact-inner h2{margin:0 0 1rem;font-size:1.8rem}
.contact-inner .btn.white{padding:.8rem 1.6rem;border-radius:.6rem;font-weight:700}

/* ===== Footer ===== */
.footer{background:#0b2a4a;color:#fff;padding:3rem 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;align-items:flex-start}
.logo-invert{height:40px;filter:brightness(0) invert(1)}
.footer p{opacity:.9}
.f-links,.f-contacts{display:flex;flex-direction:column;gap:.5rem}
.footer h4{margin:0 0 .5rem}
.footer a{color:#fff;opacity:.9}
.footer a:hover{opacity:1}
.subfooter{margin-top:2rem;background:#081f36;padding:1rem 0;text-align:center;color:#dbe6ff;font-size:.9rem}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .hero-slider{height:75vh}
  .grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .hero-slider{height:68vh}
  .menu{display:none}
  .grid{grid-template-columns:1fr}
  .nav{font-size:1.6rem;padding:.4rem .9rem}
}
/* Modern hover glow */
.menu a:hover, .btn:hover {
  filter: brightness(1.2);
  transition: all .3s ease;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .2s ease;
  z-index: 1000;
box-shadow:0 0 12px rgba(0,153,255,.6);animation:glowPulse 2s infinite alternate;}
#backToTop:hover { transform: scale(1.1); background: var(--brand-light); }

@keyframes glowPulse {
  0% { box-shadow: 0 0 8px rgba(0,153,255,.3); }
  100% { box-shadow: 0 0 16px rgba(0,153,255,.8); }
}

/* Fade-in animation */
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }





/* Footer logo hover effect with shadow */
.footer .logo-invert {
  display: inline-block;
  filter: brightness(1);
  opacity: 1;
  transition: transform .4s ease, filter .4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.footer .logo-invert:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

/* Slider navigation arrows */
.hero-slider .nav {
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
  z-index: 10;
}

.hero-slider .nav.prev { left: 25px; }
.hero-slider .nav.next { right: 25px; }

/* Slider arrows with glow animation */
.hero-slider .nav {
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all .3s ease;
  z-index: 10;
  box-shadow: 0 0 8px rgba(255,255,255,0);
}
.hero-slider .nav:hover {
  background: rgba(0,0,0,0.45);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(180,220,255,0.8);
  animation: pulseGlow 1.5s infinite alternate;
}
.hero-slider .nav.prev { left: 25px; }
.hero-slider .nav.next { right: 25px; }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(180,220,255,0.4); }
  100% { box-shadow: 0 0 20px rgba(180,220,255,0.9); }
}

/* ===== Catalog Styles ===== */
#catalogo {
    background: #fff;
    padding: 4rem 0;
}

#catalogo .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

#catalogo .card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
}

#catalogo .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-light);
}

#catalogo .card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

#catalogo .card:hover img {
    transform: scale(1.05);
}

#catalogo .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

#catalogo .card .btn {
    margin-top: auto;
    align-self: center;
}

/* ===== Back Button ===== */
.btn-outline-back {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #007bff;
    border-radius: 30px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-outline-back:hover {
    background: #007bff;
    color: #fff;
}

/* ===== Cookie Info Box ===== */
#cookie-info-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(240, 240, 240, 0.95);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    line-height: 1.4;
    z-index: 9999;
}

#cookie-info-box a {
    color: #007bff;
    text-decoration: underline;
}

#cookie-info-box button {
    display: block;
    margin-top: 8px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
}

#cookie-info-box button:hover {
    background: #0056b3;
}
