:root {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --color-sabbia: #d6c2a1;
  --color-sabbia-soft: #f2e7d6;
  --color-grigio-soft: #e5e5e5;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  background: #f8fafc;
}

a {
  color: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6e9ef;
  z-index: 1000;
}

.navbar-container {
  max-width: 1120px;
  margin: 0 auto;
  height: 72px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar-site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.navbar-logotipo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transform: translateY(5px);
}

.navbar-marchio {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links a,
.navbar-mobile a {
  color: #344054;
  text-decoration: none;
  font-weight: 600;
}

.navbar-links a:hover,
.navbar-mobile a:hover {
  color: var(--color-sabbia);
}

.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: #101828;
  cursor: pointer;
  line-height: 1;
}

.navbar-toggle-close {
  display: none;
}

.navbar-mobile {
  display: none;
}

.navbar.is-open .navbar-toggle-open {
  display: none;
}

.navbar.is-open .navbar-toggle-close {
  display: inline;
}

.navbar.is-open .navbar-mobile {
  display: flex;
}

.page-content {
  width: 100%;
  margin: 0;
  padding: 72px 0 0;
}

.section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 5rem);
  scroll-margin-top: 72px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  align-items: flex-start;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.42) 0%, rgba(25, 25, 25, 0.58) 100%);
  z-index: 1;
}

.section h1,
.section h2,
.section p,
.section ul,
.section li,
.section a,
.section iframe {
  position: relative;
  z-index: 2;
}

.text-panel {
  position: relative;
  z-index: 2;
  width: min(1040px, 96vw);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: 3px;
  border: 1px solid rgba(242, 231, 214, 0.45);
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 2.8vw, 2.3rem);
  color: #000000;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  color: #000000;
}

.section-copy {
  color: #000000;
}

.section-copy > :first-child {
  margin-top: 0;
}

.section-copy > :last-child {
  margin-bottom: 0;
}

.section-copy p,
.section-copy ul {
  margin: 0 0 1rem;
  max-width: none;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.section-copy ul {
  padding-left: 1.2rem;
}

.section-copy a {
  color: #204d66;
}

.contacts-section {
  align-items: center;
  padding-top: clamp(1.5rem, 2.8vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 2.8vw, 2.5rem);
}

.contacts-section .contacts-title {
  color: #000000;
  text-align: center;
}

.contacts-panel {
  width: min(1080px, 97vw);
  padding: clamp(0.95rem, 2vw, 1.4rem);
}

.contact-cards {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  width: 195px;
  min-height: 178px;
  padding: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 3px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #375b58;
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #264653;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.map-card {
  width: min(470px, 97vw);
  min-height: 220px;
}

.contact-map {
  width: 100%;
  height: 140px;
  border: 0;
  border-radius: 3px;
  margin-top: auto;
}

.reveal {
  opacity: 0;
  transition: opacity 650ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.from-left {
  transform: translateX(-64px);
}

.from-right {
  transform: translateX(64px);
  margin-left: auto;
}

.from-bottom {
  transform: translateY(64px);
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.legal-footer {
  padding: 1.5rem 1rem 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  background: #f3f4f2;
  border-top: 1px solid #d9ddd8;
  color: #1e2b28;
}

.legal-footer p {
  margin: 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.45;
}

.cookie-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
}

.cookie-popup-overlay.is-visible {
  display: flex;
}

.cookie-popup {
  width: min(680px, 98vw);
  background: #f7f4eb;
  border: 1px solid #d3ccbb;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  padding: 1rem 1.1rem;
}

.cookie-popup h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: #2a3533;
}

.cookie-popup p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #293331;
}

.cookie-popup-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.cookie-btn {
  border: 0;
  border-radius: 4px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-primary {
  background: var(--color-sabbia);
  color: #1e2b28;
}

.cookie-btn-secondary {
  background: #d8ddd9;
  color: #25322f;
}

.page-fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
}

.page-fallback__entry h1 {
  margin-top: 0;
}

@media (max-width: 860px) {
  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-mobile {
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #d0d5dd;
    background: #f2f4f7;
  }

  .navbar-logotipo {
    height: 26px;
  }

  .navbar-marchio {
    height: 34px;
  }

  .section {
    min-height: calc(100vh - 72px);
    padding: 1.5rem 1rem;
  }

  .text-panel {
    width: 100%;
  }

  .contact-cards {
    width: min(460px, 100%);
  }

  .contact-card,
  .map-card {
    width: 100%;
  }

  .from-right {
    margin-left: 0;
  }

  .legal-footer {
    padding: 1.25rem 0.85rem 1.5rem;
  }

  .cookie-popup-overlay {
    align-items: center;
  }

  .cookie-popup {
    width: min(520px, 96vw);
  }

  .cookie-popup-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view,
  .from-left,
  .from-right,
  .from-bottom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
