
/* =========================================
   PRIVILEGE - HAIR BEAUTY BY MARINA SITI
   STILE PRINCIPALE NERO E ORO
========================================= */

:root {
  --black: #080808;
  --black-soft: #121212;
  --gold: #c9a052;
  --gold-light: #f0d18b;
  --white: #f5f2eb;
  --gray: #aaa49a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}

body, button, input, textarea, select {
  font-family: 'DM Sans', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   HEADER E MENU
========================================= */

.header {
  min-height: 95px;
  padding: 10px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border-bottom: 1px solid #49391e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  width: 220px;
  height: 75px;
  object-fit: contain;
}

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

.navigation a {
  font-size: 12px;
  letter-spacing: 1px;
  transition: .3s;
}

.navigation a:hover {
  color: var(--gold-light);
}

.nav-button {
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 27px;
  cursor: pointer;
}

/* =========================================
   TESTI E TITOLI
========================================= */

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

h1 em, h2 em {
  color: var(--gold-light);
}

h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.2;
  margin: 20px 0;
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 100px 10%;
  background:
    radial-gradient(
      ellipse at 80% 40%,
      rgba(201,160,82,.17),
      transparent 40%
    ),
    linear-gradient(110deg, #050505, #171717, #080808);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(45px, 6vw, 78px);
  line-height: 1.15;
  margin: 25px 0;
}

.hero-content p {
  color: #c4bdb1;
  max-width: 570px;
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

/* =========================================
   PULSANTI
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: .3s;
}

.gold {
  background: linear-gradient(
    135deg,
    var(--gold-light),
    #a97929
  );
  color: #090909;
}

.gold:hover {
  filter: brightness(1.15);
  transform: translateY(-3px);
}

.outline {
  color: var(--gold-light);
  background: transparent;
}

.outline:hover {
  background: var(--gold);
  color: #080808;
}

/* =========================================
   SEZIONI GENERALI
========================================= */

.section {
  padding: 100px 9%;
}

/* =========================================
   INTRODUZIONE E VALORI
========================================= */

.intro {
  text-align: center;
  background: #101010;
}

.intro-text {
  max-width: 720px;
  margin: auto;
  color: var(--gray);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 65px;
  text-align: left;
}

.values article {
  border-top: 1px solid var(--gold);
  padding: 25px 10px;
}

.values span,
.service-card span {
  color: var(--gold);
  letter-spacing: 3px;
}

.values h3,
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 500;
  margin: 12px 0;
}

.values p,
.service-card p {
  color: var(--gray);
  font-size: 13px;
}

/* =========================================
   SEZIONE MARINA
========================================= */

.marina {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 75px;
  background: #090909;
}

.marina-image {
  position: relative;
}

.marina-image::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 1px solid var(--gold);
  z-index: 0;
}

.marina-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.marina-content p {
  color: #bcb5aa;
  margin-bottom: 17px;
  font-size: 14px;
}

.signature {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 25px;
}

/* =========================================
   SERVIZI
========================================= */

.services {
  background: #111;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.service-card {
  padding: 30px 22px;
  min-height: 230px;
  border: 1px solid #514126;
  background: linear-gradient(145deg, #191919, #090909);
  transition: .3s;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

/* =========================================
   SHOP
========================================= */

.shop {
  background: #080808;
}

.shop-description {
  color: var(--gray);
  max-width: 650px;
  margin-bottom: 35px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.product-card {
  background: #151515;
  border: 1px solid #4a3920;
  padding: 20px;
}

.product-card img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: #101010;
}

.product-details {
  padding: 22px 5px;
}

.product-label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
}

.product-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 12px 0;
}

.product-details p {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 20px;
}

.shop-note {
  font-size: 11px;
  color: #817b71;
  margin-top: 20px;
}

/* =========================================
   CONTATTI
========================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(201,160,82,.12),
      transparent 45%
    ),
    #101010;
}

.contact-info p {
  color: var(--gray);
  margin: 20px 0;
}

.whatsapp {
  display: inline-block;
  color: var(--gold-light);
  font-size: 17px;
  margin-top: 15px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#contactForm label {
  font-size: 12px;
  color: #d7cfc0;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  padding: 15px;
  width: 100%;
  background: #1a1a1a;
  color: white;
  border: 1px solid #4a3a20;
  font-family: inherit;
  font-size: 13px;
}

#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  outline: 1px solid var(--gold);
}

#contactForm .privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

#contactForm .privacy input {
  width: auto;
  flex-shrink: 0;
  accent-color: var(--gold);
}

#contactForm .privacy a {
  color: var(--gold-light);
  text-decoration: underline;
}

#contactForm button {
  align-self: flex-start;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  width: 100%;
  padding: 55px 20px 25px;
  background: #080808;
  border-top: 1px solid rgba(214,173,85,.45);
  text-align: center;
}

.footer-logo {
  display: block;
  width: 150px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 20px;
}

.footer > p {
  color: #c9c9c9;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin: 0 0 25px;
  font-style: italic;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 25px 0 30px;
}

.social-links a {
  color: #d6ad55;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color .3s ease;
}

.social-links a:hover {
  color: #fff;
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 850px;
  margin: 30px auto 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(214,173,85,.25);
}

.legal-links a {
  color: #d6ad55;
  text-decoration: none;
  font-size: 12px;
  transition: color .3s ease;
}

.legal-links a:hover {
  color: #fff;
}

.legal-links span {
  color: #71603d;
  font-size: 12px;
}

.copyright {
  color: #888;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 15px;
  letter-spacing: .4px;
}

/* =========================================
   WHATSAPP FISSO
========================================= */

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #080808;
  font-size: 28px;
  z-index: 99;
  box-shadow: 0 5px 20px #0008;
}

/* =========================================
   COOKIE BANNER E PREFERENZE
========================================= */

/* Nasconde davvero gli elementi con hidden */

.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none !important;
}

/* Sfondo oscurato del popup */

.cookie-banner,
.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow-y: auto;
}

/* Riquadro principale */

.cookie-content,
.cookie-preferences-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 35px;
  background: #101010;
  color: #eee;
  border: 1px solid #c49a45;
  border-radius: 12px;
  box-shadow: 0 15px 60px rgba(0,0,0,.7);
}

/* Marchio */

.cookie-brand {
  color: #d6ad55;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 5px;
}

/* Titoli */

.cookie-content h2,
.cookie-preferences-box h2 {
  color: #d6ad55;
  font-size: 25px;
  line-height: 1.3;
  margin: 17px 0 12px;
}

/* Testi */

.cookie-content p,
.cookie-preferences-box p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
}

/* Link alle informative */

.cookie-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.cookie-links a {
  color: #d6ad55;
  font-size: 13px;
  text-decoration: underline;
}

/* Pulsanti */

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.cookie-btn {
  flex: 1;
  min-height: 45px;
  padding: 12px;
  color: #f0d18b;
  background: #171717;
  border: 1px solid #b58a3a;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: .25s;
}

.cookie-btn:hover {
  background: #292116;
  border-color: #f0d18b;
}

.cookie-btn.gold {
  background: linear-gradient(135deg,#f3d68a,#b88632);
  color: #080808;
}

.cookie-btn.gold:hover {
  filter: brightness(1.12);
}

/* Opzioni cookie */

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #403626;
  color: #eee;
  cursor: pointer;
}

.cookie-option p {
  margin: 5px 0 0;
  font-size: 12px;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #d6ad55;
  cursor: pointer;
}

.always-active {
  color: #d6ad55;
  font-size: 12px;
  white-space: nowrap;
}

/* Pulsante salva */

.cookie-btn.full {
  width: 100%;
  margin-top: 10px;
  flex: auto;
}

/* Pulsante fisso per riaprire il consenso */

.cookie-reopen {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9998;
  padding: 10px 14px;
  color: #d6ad55;
  background: #101010;
  border: 1px solid #b58a3a;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.35);
  transition: .25s;
}

.cookie-reopen:hover {
  background: #292116;
  color: #fff;
}

/* Focus accessibile */

.cookie-btn:focus-visible,
.cookie-reopen:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marina {
    gap: 40px;
  }
}

/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 680px) {
  html {
    scroll-padding-top: 75px;
  }

  .header {
    min-height: 75px;
    padding: 8px 20px;
  }

  .logo img {
    width: 170px;
    height: auto;
  }

  .menu-toggle {
    display: block;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    padding: 25px;
    background: #080808;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--gold);
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 8px;
  }

  .hero {
    min-height: 600px;
    padding: 70px 25px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .section {
    padding: 75px 23px;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .marina,
  .contact {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-card {
    padding: 20px 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 340px;
  }

  .social-links {
    gap: 18px;
  }

  .footer {
    padding: 40px 15px 20px;
  }

  .footer-logo {
    width: 125px;
  }

  .legal-links {
    gap: 10px;
    max-width: 350px;
  }

  .legal-links a {
    font-size: 11px;
  }

  .copyright {
    font-size: 10px;
  }

  /* Popup su smartphone */

  .cookie-banner,
  .cookie-preferences {
    padding: 14px;
  }

  .cookie-content,
  .cookie-preferences-box {
    padding: 25px 20px;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }

  .cookie-content h2,
  .cookie-preferences-box h2 {
    font-size: 23px;
  }

  .cookie-content p,
  .cookie-preferences-box p {
    font-size: 13px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    flex: auto;
    min-height: 46px;
  }

  .cookie-option {
    gap: 10px;
  }

  .cookie-reopen {
    bottom: 10px;
    left: 10px;
    font-size: 11px;
  }
}

/* =========================================
   SCHERMI MOLTO PICCOLI
========================================= */

@media (max-width: 390px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .cookie-content,
  .cookie-preferences-box {
    padding: 22px 17px;
  }
}

/* =========================================
   FINE CSS PRIVILEGE
========================================= */
