/* === css\section.css === */

body {
  background: var(--color-bg);
}

main {
  counter-reset: page-section;
  background: var(--color-bg);
}

.cover-hero {
  position: relative;
  min-height: min(74vh, 690px);
  display: grid;
  align-items: start;
  overflow: hidden;
  color: var(--color-text);
  background: #f4f4f1;
  isolation: isolate;
  background-image: url(https://beachsandcleaningstation.com/wp-content/themes/beach-sand-cleaning-station-v2-wp-upload/assets/Sezione%201%20-%20Immagini%20di%20sfondo%20per%20banner%20iniziale/fondale.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;	
}

.cover-hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto; 
  width: 100%;
  max-width: 1200px; 
  display: grid;
  place-items: center;
  background: transparent; 
}
.cover-hero__media::before {
  display: none;
}

.cover-hero__media span,
.generic-photo span,
.technical-placeholder > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.cover-hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-top: clamp(8rem, 17vh, 11rem);
  text-align: center;
    margin: 0 auto;
}

.cover-hero__eyebrow,
.section-label {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cover-hero__eyebrow {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(23, 21, 19, 0.24);
}

.cover-hero h1 {
  max-width: 15ch;
  color: #ffffff;
  font-size: 84px;
  font-family: Gabriola, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.cover-hero p:not(.cover-hero__eyebrow) {
  max-width: 34rem;
  color: #3f3932;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: pre-line;
}

.cover-hero__media span {
  border-color: rgba(23, 21, 19, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #413a33;
}

.cover-hero__media img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain !important;
  object-position: center center !important; 
}

.site-header:not(.is-scrolled) .site-nav__list {
  border-color: rgba(23, 21, 19, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.site-header:not(.is-scrolled) .site-nav a {
  color: var(--color-text-soft);
}

.site-header:not(.is-scrolled) .site-nav a:hover,
.site-header:not(.is-scrolled) .site-nav a.is-active,
.site-header:not(.is-scrolled) .site-nav a[aria-current="page"] {
  background: rgba(23, 21, 19, 0.07);
  color: var(--color-text);
}

.site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(23, 21, 19, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.site-header:not(.is-scrolled) .nav-toggle__line {
  background: var(--color-text);}
