/* Studio Dentistico Bonomo — stili condivisi */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Logo scontornato (il bianco del file viene eliminato in blend) ---------- */
.site-logo-img {
  filter: invert(1) grayscale(1) contrast(1.15);
  mix-blend-mode: screen;
}

/* ---------- Voce di menu attiva (classe aggiunta da include.js) ---------- */
.main-nav a.active {
  color: #00BDD0;
  font-weight: 700;
}

/* ---------- Hamburger ---------- */
.nav-toggle .bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: .2s ease-in-out;
}
.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 28px; }
.nav-toggle.active .bar:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Ingresso in scena (fade puro, come AOS del template) ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity .4s ease;
}
[data-reveal].aos-animate { opacity: 1; }
[data-reveal][data-delay="200"] { transition-delay: .2s; }
[data-reveal][data-delay="400"] { transition-delay: .4s; }
[data-reveal][data-delay="600"] { transition-delay: .6s; }
.no-js [data-reveal] { opacity: 1; }

/* ---------- Hero ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  will-change: transform;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00272B 0%, rgba(0,39,43,.97) 28%, rgba(0,39,43,.72) 52%, rgba(0,39,43,.28) 78%, rgba(0,39,43,.12) 100%);
}
@media (max-width: 767px) {
  .hero-veil {
    background: linear-gradient(180deg, rgba(0,39,43,.92) 0%, rgba(0,39,43,.88) 55%, rgba(0,39,43,.78) 100%);
  }
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}
.hero-fade--mist { background: linear-gradient(180deg, rgba(244,244,245,0) 0%, #F4F4F5 100%); }

/* ---------- Typed ---------- */
.typed-word { color: #00BDD0; }
.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #00BDD0;
  font-weight: 400;
  animation: typed-blink .7s step-end infinite;
}
@keyframes typed-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Card ---------- */
.feature-card { transition: .4s; }
.feature-card:hover { transform: translate3d(0, -10px, 0); }

.photo-zoom img { transition: transform .6s ease; }
.photo-zoom:hover img { transform: scale(1.06); }

/* ---------- Slider a scorrimento (pattern Swiper del template) ---------- */
.snap-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 768px) { .snap-row { gap: 32px; } .snap-row > * { flex: 0 0 46%; } }
@media (min-width: 1024px) { .snap-row { gap: 48px; } .snap-row > * { flex: 0 0 calc((100% - 2 * 48px) / 3.2); } }

/* ---------- Form ---------- */
.field {
  width: 100%;
  border: 1px solid #E3E6E8;
  border-radius: 5px;
  background: #fff;
  padding: 14px 16px;
  font-size: 17px;
  line-height: 23.8px;
  color: #28292A;
  transition: .4s;
}
.field::placeholder { color: #9AA6AD; }
.field:focus {
  outline: none;
  border-color: #00BDD0;
  box-shadow: 0 0 0 3px rgba(0,189,208,.14);
}
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360707B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

/* ---------- Modale informativa ---------- */
.modal[hidden] { display: none; }

/* ---------- Accessibilità ---------- */
:focus-visible { outline: 2px solid #00BDD0; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .hero-media img { transform: none !important; }
}
