/* layout.css – header, footer, grid (more breathing room, premium alignment) */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition);
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(var(--color-primary-rgb), 0.96);
  padding: 0.75rem 0;
  backdrop-filter: saturate(1.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo--mobile img {
  max-width: 95px;
}

/* Use same (desktop) logo at all viewports; hide mobile-only logo */
.site-logo--mobile { display: none; }
.site-logo:not(.site-logo--mobile) { display: block; }

.nav-main { display: none; }
@media (min-width: 1024px) {
  .nav-main { display: block; }
  .nav-main ul {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }
  .nav-main a {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.92;
  }
  .nav-main a:hover,
  .nav-main a[aria-current="page"] { opacity: 1; }
}

/* CTA "Chiama adesso" hidden at mobile menu breakpoint, shown from desktop up (specificity overrides .btn) */
.site-header .header-cta { display: none !important; }
@media (min-width: 1024px) {
  .site-header .header-cta { display: inline-flex !important; }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.5rem;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-white);
  padding: 2rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}
.offcanvas.is-open {
  transform: translateX(0);
  visibility: visible;
}
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.offcanvas-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
}
.offcanvas-nav ul { display: flex; flex-direction: column; gap: 0; }
.offcanvas-nav a {
  display: block;
  padding: 1rem 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-warm);
}

/* Page title block */
.page-header {
  padding-top: calc(80px + var(--space-section));
  padding-bottom: var(--space-section);
  background: url(/assets/images/agenzia-viaggi-biancavilla-5.jpg) no-repeat center center;
  position: relative;
}

.background-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.page-header .container {
  position: relative;
  z-index: 10;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0;
  color: var(--color-white);
  text-align: center;
}


/* Breadcrumb */
.breadcrumb {
  margin-bottom: 0.75rem;
  text-align: center;
}
.breadcrumb ol {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-white);
}
.breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--color-white);
}
.breadcrumb [aria-current="page"] {
  color: var(--color-white);
  font-weight: 800;
}


main { padding-top: 0; }

.section {
  padding: var(--space-section) 0;
}
.section--tight {
  padding: calc(var(--space-section) * 0.6) 0;
}
.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.section--cream {
  background: var(--color-cream);
}
.section--warm {
  background: var(--color-warm);
}

.two-col {
  display: grid;
  gap: var(--space-block);
  align-items: center;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .two-col--reverse .two-col__text { order: 2; }
  .two-col--reverse .two-col__media { order: 1; }
}

.four-col {
  display: grid;
  gap: var(--space-block);
}
@media (min-width: 640px) {
  .four-col { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .four-col { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 3.5rem;
  position: relative;
}
.site-footer a { color: inherit; }
.site-footer a:hover { opacity: 0.9; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
/* For small screens, put the logo on a row and the other two columns on a second row */
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; /* span full width */ }
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.footer-brand .footer-logo { display: inline-block; }
.footer-brand .footer-logo img {
  max-width: 200px;
  height: auto;
  /* margin-bottom: 0.75rem; */
}
.footer-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-white);
}
.footer-brand .footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-brand .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 8px;
  border: 0px transparent;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background var(--transition), border-color var(--transition);
}
.footer-brand .footer-social a:hover {
  background: var(--color-accent-alt);
}
.footer-brand .footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  opacity: 0.6;
}

.footer-contact,
.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li,
.footer-hours li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-contact li:last-child,
.footer-hours li:last-child { margin-bottom: 0; }
.footer-contact__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  color: var(--color-accent);
}
.footer-contact__icon svg {
  width: 100%;
  height: 100%;
}

.footer-hours__closed { font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  text-transform: uppercase;
}
.footer-bottom .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom .container {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "credits legal right";
    text-align: left;
  }
  .footer-credits { grid-area: credits; }
  .footer-legal { grid-area: legal; }
  .footer-bottom__right {
    grid-area: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }
  .footer-design { margin: 0; text-align: right; }
}
.footer-credits {
  font-size: var(--footer-bottom-font-size);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
}
.footer-legal a {
  font-size: var(--footer-bottom-font-size);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--color-white); }
.footer-bottom__right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-design {
  font-size: var(--footer-bottom-font-size);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom__right .back-top {
  flex-shrink: 0;
}
