/* ── RESET & BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #002d4e;
  position: relative;
  display: inline-block;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90px;
  height: 3px;
  background: #007649;
}

h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #002d4e;
}

h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: .5em;
  color: #002d4e;
}

p { margin-bottom: .5em; }

.location-address {
  font-size: .85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.location-desc { margin-top: .75rem; }

.location-address::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath fill='%23777' d='M6 0C3.24 0 1 2.24 1 5c0 3.75 5 11 5 11s5-7.25 5-11c0-2.76-2.24-5-5-5zm0 7.5C4.62 7.5 3.5 6.38 3.5 5S4.62 2.5 6 2.5 8.5 3.62 8.5 5 7.38 7.5 6 7.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

a { color: #002a4c; text-decoration: underline; }

/* ── NAVBAR ── */
.navbar {
  background-color: #002a4c;
  padding: 0;
  min-height: 70px;
  border-bottom: 3px solid #007649;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.navbar .logo-lavazza {
  height: 67px;
  width: auto;
  display: block;
  padding: 12px 23px;
}

.navbar .logo-wimbledon {
  height: 66px;
  width: auto;
  display: block;
  padding: 0 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.nav-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding-right: 1.5rem;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: white !important;
  transition: opacity .4s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 0.75;
}

.navbar-nav .nav-link.lang {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 3px;
  margin-left: .3rem;
  padding: .25rem .55rem !important;
  font-size: .72rem;
  transition: background .4s ease, border-color .4s ease, opacity .4s ease;
}

.lang-group {
  margin-left: 2rem;
}

.lang-group .nav-item {
  padding-right: .3rem;
}

.navbar-nav .nav-link.lang:hover {
  background: white;
  border-color: white;
  color: #002a4c !important;
  opacity: 1;
}

.navbar-nav .nav-link.lang.active {
  background: white;
  border-color: white;
  color: #002a4c !important;
  opacity: 1;
}

.navbar-toggler {
  border: none;
  margin-right: 1rem;
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Hamburger → X quando il menu è aperto */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e") !important;
}

/* ── ANCHOR ── */
a.anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* ── HERO ── */
#home-hero {
  margin-top: 66px;
  background-color: black;
}

#home-hero video {
  width: 100%;
  height: 100%;
  display: block;
}

#btn-mute {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
  padding: 0;
}

#btn-mute:hover {
  background: rgba(0,0,0,.65);
  border-color: white;
}

#btn-mute svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1199px) {
  #home-hero { margin-top: 56px; }
}

/* ── HOME INTRO ── */
#home-intro { margin-top: 3rem; }

/* ── BLOCKS (cards) ── */
.bg-grayish { background-color: #FAF8F4; }

#home-blocks .card-box {
  background: white;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  border-radius: 12px;
  overflow: hidden;
}

/* ── BUTTONS ── */
.btn-primary-custom {
  display: inline-block;
  padding: 9px 24px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  border: 3px solid #002c69;
  color: #002c69 !important;
  background: transparent;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-primary-custom:hover {
  background: #002c69;
  color: white !important;
}

/* ── MAP SECTION ── */
#home-map-img {
  height: 60vh;
  min-height: 400px;
  background-image: url('assets/img/map.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

#home-map-img .download-btn-wrap {
  position: absolute;
  bottom: 0;
  right: 3rem;
  padding-bottom: 2rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 9px 24px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
  border: 3px solid #002c69;
  color: #002c69 !important;
  background: white;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-download:hover {
  background: #002c69;
  color: white !important;
}

.btn-download:hover::before {
  filter: brightness(0) invert(1);
}

.btn-download::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23002c69' d='M8 12l-5-5 1.4-1.4L7 9.2V0h2v9.2l2.6-3.6L13 7l-5 5zM0 14h16v2H0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── CONTACT ICONS ── */
.contact-email,
.contact-phone {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.contact-email::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpolyline points='2,4 12,13 22,4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.contact-phone::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── VIVI LONDRA ── */
.locations { margin-top: 3rem; margin-bottom: 3rem; }

/* ── FAQ ── */
#faq-section {
  background-color: #002a4c;
  color: white;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

#faq-section h1 { color: white; }

.faq-inner {
  max-width: 1024px;
  margin: 0 auto;
}

#faq-section .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

#faq-section .accordion-button {
  background: transparent;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  box-shadow: none;
  padding-left: 0;
}

#faq-section .accordion-button:not(.collapsed) {
  color: white;
  background: transparent;
  box-shadow: none;
}

#faq-section .accordion-button::after {
  filter: invert(1);
}

#faq-section .accordion-body {
  color: rgba(255,255,255,.85);
  padding-left: 0;
  padding-top: .25rem;
  line-height: 1.7;
}

#faq-section .accordion-body a { color: rgba(255,255,255,.85); }

/* ── CONTACTS ── */
#contacts-hero {
  background-image: url('assets/img/contacts.jpg');
  background-size: cover;
  background-position: center;
  padding: 3rem;
  color: white;
}

#contacts-hero h1 { color: white; }

/* ── FOOTER ── */
#footer {
  background-color: #002a4c;
  color: white;
}

#footer a { color: white; }

.footer-lang {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 3px;
  padding: .25rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .3s, border-color .3s;
}

.footer-lang:hover {
  background: white;
  border-color: white;
  color: #002a4c !important;
}

.footer-lang.active {
  background: white;
  border-color: white;
  color: #002a4c !important;
}

/* ── NAVBAR HEIGHT FIX ── */
@media (max-width: 1199px) {
  #home-hero { margin-top: 60px; }
}

/* ── MOBILE MENU ── */
@media (max-width: 1199px) {
  /* Il collapse scende sotto la navbar senza alterarne l'altezza */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #002a4c;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
    z-index: 999;
  }

  .navbar-nav {
    padding: .75rem 1.5rem 1.25rem;
  }

  .nav-item {
    padding-right: 0;
  }

  .lang-group {
    margin-left: 0;
    margin-top: .5rem;
    margin-bottom: .75rem;
  }

  .navbar .logo-lavazza {
    height: 50px;
    padding: 8px 16px;
  }

  .navbar {
    min-height: 90px;
  }

  .navbar-wimbledon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar .logo-wimbledon {
    height: 66px;
    margin-top: 0;
    margin-bottom: 0;
  }
}
