@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Montserrat:wght@400;500;600;700&display=swap");

/* --- CSS Variables & Theming --- */
:root {
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  
  --bg-primary: #F9F7F2;
  --text-primary: #1A1A1A;
  --text-muted: rgba(0, 0, 0, 0.6);
  --text-muted-subtle: rgba(0, 0, 0, 0.55);
  --text-muted-quote: rgba(0, 0, 0, 0.65);
  --border-subtle: rgba(0, 0, 0, 0.1);
  --border-item: rgba(0, 0, 0, 0.15);
  --border-gold-subtle: rgba(176, 141, 87, 0.5);
  
  --color-gold: #b08d57;
  --color-gold-hover: #947445;
  --color-gold-light: #D4AF37;
  
  --header-bg: rgba(249, 247, 242, 0.9);
  --reviews-bg: #1A1A1A;
  --reviews-text: #F9F7F2;
}

html.dark {
  --bg-primary: #0D0D0D;
  --text-primary: #E5E5E5;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-muted-subtle: rgba(255, 255, 255, 0.55);
  --text-muted-quote: rgba(255, 255, 255, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-item: rgba(255, 255, 255, 0.15);
  --border-gold-subtle: rgba(212, 175, 55, 0.5);
  
  --color-gold: #D4AF37;
  --color-gold-hover: #b08d57;
  --color-gold-light: #D4AF37;
  
  --header-bg: rgba(13, 13, 13, 0.9);
  --reviews-bg: #F1ECE2;
  --reviews-text: #171717;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Focus States --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- Typography Utilities --- */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-gold {
  color: var(--color-gold);
}

.bg-gold {
  background-color: var(--color-gold);
}

.border-gold {
  border-color: var(--color-gold);
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  font-weight: 600;
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 3.75rem;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* --- Layout Containers --- */
.section-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem; /* 1280px */
  padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
  .section-shell {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

@media (min-width: 1024px) {
  .section-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hit {
  min-height: 2.75rem;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Buttons --- */
.gold-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  border-radius: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.gold-button:hover {
  background-color: var(--color-gold-hover);
}

.outline-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid currentColor;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.outline-button:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.social-link {
  display: grid;
  height: 3rem;
  width: 3rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid currentColor;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.quick-link {
  display: flex;
  min-height: 2.75rem;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.quick-link:hover {
  color: var(--color-gold-light);
}

.quick-link.bg-gold:hover {
  color: #ffffff;
  background-color: var(--color-gold-hover);
}

/* --- Header / Navigation --- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--header-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.header-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  height: 5rem; /* 80px */
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1024px) {
  .header-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0.025em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.theme-toggle-btn, .mobile-menu-btn {
  display: grid;
  place-items: center;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem;
  background-color: var(--header-bg);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--color-gold);
}

/* --- Hero Section --- */
#home {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
  text-align: center;
  color: #ffffff;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
  max-width: 80rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
  font-weight: 400;
}

.hero-title em {
  font-weight: 300;
  font-style: italic;
  color: #D4AF37;
}

.hero-tags {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  list-style: none;
}

@media (min-width: 768px) {
  .hero-tags {
    font-size: 1.125rem;
  }
}

.hero-tags li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-copy {
  margin-top: 2.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-outline-btn {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero-outline-btn:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 10;
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Section 01: Gallery (Risultati) --- */
.gallery-header {
  margin-bottom: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .gallery-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
}

.gallery-copy {
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .gallery-copy {
    justify-self: end;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.05);
}

.gallery-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
  filter: saturate(0.75);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
}

/* --- Section 02: Services (Servizi) --- */
#servizi {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.services-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.services-left {
  grid-column: span 12 / span 12;
}

@media (min-width: 1024px) {
  .services-left {
    grid-column: span 4 / span 4;
  }
}

.services-copy {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.services-right {
  grid-column: span 12 / span 12;
}

@media (min-width: 1024px) {
  .services-right {
    grid-column: span 8 / span 8;
  }
}

.service-item {
  border-top: 1px solid var(--border-item);
  padding: 1.75rem 0;
  transition: border-color 0.15s ease;
}

.service-item:hover {
  border-color: var(--color-gold);
}

.service-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.service-num {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 600;
}

.service-content {
  flex: 1 1 0%;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .service-title {
    font-size: 3rem;
  }
}

.service-desc {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.service-cta-btn {
  border-radius: 9999px;
  border: 1px solid currentColor;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.service-item:hover .service-cta-btn {
  background-color: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
}

/* --- Section 03: Salon & Story (Salone) --- */
.salon-top-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .salon-top-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.salon-img-wrapper {
  position: relative;
  grid-column: span 12 / span 12;
}

@media (min-width: 1024px) {
  .salon-img-wrapper {
    grid-column: span 6 / span 6;
  }
}

.salon-photo-box {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.salon-photo-box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.salon-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -0.75rem;
  background-color: var(--color-gold);
  padding: 1.5rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .salon-badge {
    padding: 2.25rem;
  }
}

.salon-badge p {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-style: italic;
}

.salon-text-wrapper {
  grid-column: span 12 / span 12;
}

@media (min-width: 1024px) {
  .salon-text-wrapper {
    grid-column: span 5 / span 5;
    grid-column-start: 8;
  }
}

.salon-copy {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--text-muted-quote);
}

.salon-quote {
  margin-top: 1.5rem;
  border-left: 2px solid var(--color-gold);
  padding-left: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 2rem;
  font-style: italic;
}

.salon-videos-grid {
  margin-top: 6rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .salon-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.salon-video-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #000000;
  object-fit: cover;
}

/* --- Section 04: Reviews (Dicono di noi) --- */
.reviews-section {
  overflow: hidden;
  background-color: var(--reviews-bg);
  padding-top: 6rem;
  padding-bottom: 6rem;
  color: var(--reviews-text);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.reviews-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .reviews-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.stars-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.25rem;
  color: var(--color-gold);
}

.reviews-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-quote {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.25;
  font-style: italic;
}

@media (min-width: 768px) {
  .review-quote {
    font-size: 3rem;
  }
}

.review-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

/* --- Section 05: Contacts (Contatti) --- */
#contatti {
  padding-bottom: 10rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-copy {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.contact-buttons-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-schedule-col {
  border-left: 1px solid var(--border-gold-subtle);
  padding-left: 1.75rem;
}

.hours-block {
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.75rem;
}

.hours-icon {
  margin-top: 0.25rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.hours-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.schedule-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

.schedule-time {
  color: var(--text-muted);
}

.socials-row {
  display: flex;
  gap: 0.75rem;
}

/* --- Bottom Quick Actions Bar --- */
.bottom-quick-bar {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  z-index: 50;
  display: flex;
  width: calc(100% - 1.5rem);
  max-width: 36rem;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0.375rem;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

/* --- Footer --- */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  transition: border-color 0.5s ease;
}

.footer-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  max-width: 80rem;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  color: var(--text-muted-subtle);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}
