*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Karla', sans-serif;
  background-color: #ede9e6;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding-top: 120px;
  padding-bottom: 60px;
}

.navbar {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  padding: 0 30px;
  left: 0;
  background-color: #111827;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar > a {
  display: flex;
  align-items: center;
}
.navbar a img {
  width: 140px;
  height: auto;
  display: block;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 100;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: #b6ba22;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 4px; }
  .navbar nav {
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #111827;
    flex-direction: column;
    padding: 0 30px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .navbar nav.open { max-height: 400px; opacity: 1; padding: 16px 30px 28px; }
  nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 15px; }
  nav a:last-child { border-bottom: none; }
}
.contatti-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
}

.contatti-inner {
  width: 100%;
  max-width: 1200px;
  padding: 40px 30px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
  gap: 40px;
  box-sizing: border-box;
}

.contatti-info {
  width: 50%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.contatti-eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #b6ba22;
  text-transform: uppercase;
  margin: 0;
}

.contatti-rule {
  width: 50px;
  border: none;
  border-top: 2px solid #b6ba22;
  margin: 18px 0;
}

.contatti-info h1 {
  font-family: 'Fraunces', sans-serif;
  font-size: 42px;
  font-weight: 200;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
}

.contatti-info h1 span {
  color: #b6ba22;
}

.contatti-info-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #555;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.contatti-details-element {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contatti-details-element h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.contatti-details-element p {
  font-size: 15px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

.contatti-info hr {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  border: none;
  margin: 15px 0;
}

.contatti-social-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #2b241f;
  text-decoration: none;
  font-size: 26px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: #b6ba22;
  transform: translateY(-3px);
}
.contatti-mappa {
  width: 100%;
  margin-top: 30px;
}

.mappa-link {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mappa-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mappa-link:hover .mappa-img {
  transform: scale(1.03);
}

.mappa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mappa-link:hover .mappa-overlay {
  opacity: 1;
}

.mappa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #111827;
  background-color: #b6ba22;
  padding: 10px 22px;
  border-radius: 2px;
}
.contatti-form {
  width: 50%;
  background-color: #111827;
  padding: 40px 44px 44px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 40px;
  box-sizing: border-box;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  color: #2b241f;
  background-color: #ede9e6;
  border: 1px solid transparent;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a89e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #b6ba22;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ── CUSTOM SELECT ─────────────────────────────── */
.custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.custom-select__trigger {
  width: 100%;
  background-color: #ede9e6;
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 2px;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: rgba(0,0,0,0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s;
}

.custom-select.has-value .custom-select__trigger {
  color: #1a1a1a;
}

.custom-select.open .custom-select__trigger,
.custom-select__trigger:hover {
  border-color: #b6ba22;
}

.custom-select__arrow {
  font-size: 20px;
  color: rgba(0,0,0,0.45);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background-color: #ede9e6;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 200;
  display: none;
  overflow: hidden;
}

.custom-select.open .custom-select__options {
  display: block;
}

.custom-select__option {
  padding: 11px 14px;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.15s;
}

.custom-select__option:hover {
  background-color: rgba(182, 186, 34, 0.15);
}

.custom-select__option.selected {
  color: #b6ba22;
  font-weight: 700;
}

.form-btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease;
  background-color: #b6ba22;
  color: #111827;
}
.form-btn:hover {
    transform: translateY(-3px);
}
@media (max-width: 820px) {
  .contatti-inner {
    flex-direction: column;
  }
  .contatti-info {
    width: 100%;
    padding: 16px 24px 40px;
  }
  .contatti-info h1 {
    font-size: 28px;
  }
  .contatti-form {
    width: 100%;
    margin-top: 0;
    padding: 32px 24px 40px;
    border-radius: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .mappa-img { height: 200px; }
}

/* ── FOOTER ────────────────────────────────────── */
footer {
  width: 100%;
  background-color: #111827;
  color: #ede9e6;
  padding: 60px 40px 30px;
  box-sizing: border-box;
  font-family: 'Karla', sans-serif;
  border-top: 3px solid #b6ba22;
}

.footer-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-col {
  min-width: 0;
  text-align: center;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.footer-about {
  min-width: 0;
}

.footer-col h4 {
  font-family: 'Fraunces', sans-serif;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: #9ca3af;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: #b6ba22;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1000px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11px;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 680px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { display: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .footer-container { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-col p, .footer-col a { font-size: 11px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
}

/* ── NAVBAR SCROLL HIDE ─────────────────────────── */
.navbar {
  transition: transform 0.35s ease, background-color 0.3s ease;
}
.navbar--hidden {
  transform: translateY(-100%);
}
