/* Stili dedicati alla landing page pubblica index.html */

.hover-lift {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
}

.hover-lift:hover {
  transform: translateY(-7px) !important;
}

.drop-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

/* Fixed Buttons Clean & Premium Embellishment */
.fixed-buttons .button {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fixed-buttons .button img {
  filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 50%;
}

.fixed-buttons .button:hover img {
  transform: scale(1.15) rotate(8deg);
}

/* Responsività Immagini Galleria e Clickable */
.gallery-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-img {
    height: 300px;
  }

  /* Fix Hero Carousel per Mobile */
  #galleria-hero .page-header {
    min-height: 50vh !important;
    margin: 0.5rem !important;
    border-radius: 1rem !important;
    background-position: center !important;
  }

  #galleria-hero .container {
    padding: 2rem 3rem !important;
  }

  #galleria-hero h2.h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  #galleria-hero p.lead {
    font-size: 1rem !important;
  }

  #galleria-hero h4 {
    font-size: 1.1rem !important;
  }

  #galleria-hero .carousel-control-prev,
  #galleria-hero .carousel-control-next {
    opacity: 0.8;
  }
}

.clickable-img {
  cursor: pointer;
  transition: opacity 0.3s;
}

.clickable-img:hover {
  opacity: 0.9;
}

/* Icone circolari dei servizi (evita style inline ripetuti) */
.icon-circle-64 {
  width: 64px;
  height: 64px;
}

.icon-circle-64 i {
  font-size: 32px;
  line-height: 1;
}

/* Widget di ricerca tracking nell'hero: stessa semi-trasparenza "vetro
   satinato" della navbar (classe .blur-light-grey, già in material-kit.css,
   applicata direttamente nel markup), qui solo forma a pillola e ombra —
   altrimenti l'input trasparente + testo scuro di Material Kit sparirebbe
   sopra la foto di sfondo */
.hero-tracking-widget {
  max-width: 480px;
  margin: 0.25rem auto 1rem;
  border-radius: 50rem;
  padding: 5px;
  box-shadow: inset 0 0 2px #fefefed1, 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-tracking-widget .form-control {
  background-color: transparent;
  color: #212529;
  border: none;
  border-radius: 50rem 0 0 50rem;
  padding: 0.65rem 1.1rem;
}

.hero-tracking-widget .form-control::placeholder {
  color: #6c757d;
}

.hero-tracking-widget .form-control:focus {
  box-shadow: none;
}

.hero-tracking-widget .btn {
  border-radius: 50rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Indicatori del carosello hero */
#galleria-hero .carousel-indicators {
  bottom: 1.5rem;
}

/* Bottone "torna su": posizionato SOPRA il bottone WhatsApp (non accanto),
   che è .fixed-buttons .button (70px, position:fixed bottom:20px right:~20px,
   z-index:9999, definito in material-kit.css) — altrimenti i due si sovrappongono */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  border: none;
}

#back-to-top.show {
  display: flex;
}

/* Animazioni al scroll dei contenuti */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sprite SVG icone social: va nascosto con posizione fuori flusso invece di
   display:none, altrimenti alcuni browser non risolvono i gradienti
   referenziati dai <use> esterni (icona Instagram invisibile) */
.svg-sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Icone social (sprite SVG riusato via <use>, colore per-icona fedele al brand originale) */
.social-icon-facebook {
  fill: #1877F2;
}

.social-icon-instagram {
  fill: url(#instagram-gradient);
}

/* Mappa Google (embed senza bordo) */
.map {
  border: 0;
}

/* Immagine di sfondo della sezione contatti */
.contact-bg-image {
  background-size: cover;
  background-position: bottom;
}

/* Logo nel footer: material-kit.css impone .footer .footer-logo { max-width: 2rem },
   pensato per un logo quadrato: qui serve un'altezza maggiore e proporzioni libere */
.footer .footer-logo {
  max-width: none;
  max-height: 90px;
  width: auto;
}

/* Modale lightbox immagini galleria */
.modal-close-shadow {
  text-shadow: 0 0 5px black;
}

.modal-img {
  max-height: 90vh;
}
