/* ==========================================================================
   site.css — integrazioni alla grafica originale (template "decoy" / Bootstrap 3)
   Sostituisce LayerSlider, meanMenu e i plugin jQuery non più necessari.
   ========================================================================== */

/* ---------- Base ---------------------------------------------------------- */
body { overflow-x: hidden; overflow-y: visible; }
.navbar { margin-bottom: 0; border: 0; }
.logo { width: auto; height: auto; max-width: 150px; box-sizing: content-box; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #353648; color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #baa454 !important; outline-offset: 2px;
}
main { display: block; min-height: calc(100vh - 91px - 84px); }
@media (max-width: 979px) { main { min-height: calc(100vh - 70px - 84px); } }
main:has(.hero) { min-height: 0; }

/* ---------- Hero (ex LayerSlider) ---------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  min-height: 340px;
  max-height: 800px;
  overflow: hidden;
  background: #4a515c;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.hero-slide--1 { background-image: url(../img/slider/01.jpg); }
.hero-slide--2 { background-image: url(../img/slider/03.jpg); background-position: right center; }

.hero .anim {
  position: absolute;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 1.4s ease .3s, transform 1.4s ease .3s;
}
.hero .is-active .anim { opacity: 1; transform: translate(-50%, 0); }
.hero .is-active .anim--delay { transition-delay: .8s; }

.hero-logo {
  top: 36%;
  left: 50%;
  width: clamp(200px, 24.5vw, 469px) !important;
  height: auto;
  padding: clamp(10px, 1.3vw, 25px);
  background: none;
  box-sizing: content-box;
}
.hero-title {
  top: 60%;
  left: 50%;
  margin: 0;
  padding: 15px;
  clear: none;
  white-space: nowrap;
  font-family: 'Philosopher', serif;
  font-weight: 700;
  font-size: clamp(18px, 1.82vw, 35px);
  line-height: 1.2;
  color: #000;
  text-transform: uppercase;
}
.hero-quote {
  margin: 0;
  padding: 15px 25px;
  white-space: nowrap;
  font-family: 'Philosopher', serif;
  font-weight: 700;
  font-size: clamp(19px, 2.35vw, 45px);
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero-quote--1 { top: 60%; left: 34%; }
.hero-quote--2 { top: 69%; left: 40%; }

.hero-dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dots button {
  width: 12px; height: 12px; padding: 0;
  border: 2px solid #fff; border-radius: 50%;
  background: transparent; opacity: .8; cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, .45);
}
.hero-dots button[aria-current="true"] { background: #fff; opacity: 1; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .25); color: #fff; font-size: 22px; line-height: 44px;
  cursor: pointer; opacity: 0; transition: opacity .3s;
}
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }

@media (max-width: 767px) {
  .hero { aspect-ratio: auto; height: 62vh; min-height: 340px; max-height: 520px; }
  .hero-slide--1 { background-position: 30% center; }
  .hero-slide--2 { background-position: 82% center; }
  .hero-logo { top: 30%; }
  .hero-title { top: 62%; }
  .hero-quote { white-space: normal; text-align: center; width: 90%; }
  .hero-quote--1, .hero-quote--2 { left: 50%; }
  .hero-quote--1 { top: 52%; }
  .hero-quote--2 { top: 68%; }
  .hero-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero .anim { transition: none !important; }
}

/* ---------- Navigazione mobile (ex meanMenu) ------------------------------ */
.nav-toggle { display: none; }

@media (max-width: 979px) {
  body { padding-top: 70px; }
  .navbar-inner { min-height: 70px; }
  .logo { padding-top: 18px; }
  .nav-toggle {
    display: block;
    position: absolute; top: 12px; right: 12px;
    width: 46px; height: 46px; padding: 11px 10px;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 3px; margin: 4px 0; background: #464646;
    transition: transform .25s, opacity .25s;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .navbar .nav {
    display: none;
    float: none !important;
    position: absolute; left: 0; right: 0; top: 70px;
    margin: 0 !important;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-open .nav { display: block; }
  .navbar .nav > li { float: none; width: 100%; }
  .navbar .nav > li > a {
    padding: 14px 16px !important;
    line-height: 20px;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #eceef1;
  }
  .navbar .nav > li.lang { display: inline-block; width: auto; }
  .navbar .nav > li.lang > a { border-bottom: 0; }
}

/* ---------- Pagine interne ------------------------------------------------ */
.portrait { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto 30px; }
.press-links { list-style: none; margin: 0 0 25px; padding: 0; }
.press-links li { padding: 4px 0; }
.press-links a:before { content: "\2192\00a0"; }

.service { margin-bottom: 20px; }

.book { text-align: center; margin-bottom: 30px; }
.book img { width: 140px !important; height: auto; box-shadow: 0 6px 18px rgba(53, 54, 72, .25); }
.book h3 { font-size: 17px; line-height: 1.4; min-height: 72px; padding-top: 22px !important; }
.pdf-link {
  display: inline-block; margin: 10px 0 0; padding: 0 30px;
  border: 1px solid #baa454; line-height: 48px; text-transform: uppercase; letter-spacing: .03em;
}
.pdf-link:hover { background: #baa454; color: #fff; }

/* ---------- Contatti ------------------------------------------------------ */
.contact-intro { font-size: 20px; line-height: 1.6; }
.form-comment label { font-weight: 400; color: #8c9aaa; display: block; margin: 0; }
.form-comment .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-comment .privacy-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 18px; }
.form-comment .privacy-check input { width: auto; margin: 3px 0 0; flex: 0 0 auto; }
.form-comment .btn { float: right; }
.form-comment .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: 12px; line-height: 18px; color: #a3aebb; }
.form-status { margin-top: 20px; padding: 12px 16px; display: none; }
.form-status.is-ok    { display: block; background: #f3f7ee; border-left: 3px solid #7aa35a; color: #4d6b36; }
.form-status.is-error { display: block; background: #fbf0f0; border-left: 3px solid #c0504d; color: #8a3330; }
@media (max-width: 991px) { .form-comment .btn { float: none; width: 100%; margin-top: 15px; } }

/* ---------- Privacy / testi lunghi --------------------------------------- */
.legal h2 { font-family: 'Philosopher', serif; font-size: 22px; color: #353648; margin-top: 30px; }
.legal p, .legal li { color: #707e8e; }
.legal ul { padding-left: 20px; margin-bottom: 25px; }

/* ---------- Footer -------------------------------------------------------- */
.footer .copyright a { color: #baa454; }
.footer .copyright a:hover { color: #fff; }
.footer .sep { margin: 0 8px; opacity: .5; }

/* contenitore header come riferimento per il pulsante menu mobile */
.navbar-inner > .container { position: relative; }
