/* Stendhal Hair Pathos - Creative & Artistic Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* CSS Variables - Palette Stendhal */
:root {
  --stendhal-red: #A01E2B;
  --warm-cream: #F5F2EB;
  --warm-gray: #5A4A4A;
  --soft-gold: #D4A574;
  --pure-white: #FFFFFF;
  --deep-black: #1A1A1A;
  --light-gray: #F8F6F3;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--warm-gray);
  background-color: var(--warm-cream);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--deep-black);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Header artistico */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--warm-cream) 0%, var(--light-gray) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 30, 43, 0.1);
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(245, 242, 235, 0.95) !important;
  backdrop-filter: blur(15px) !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-horizontal {
  height: 40px;
  width: auto;
  max-width: 240px;
  transition: transform 0.3s ease;
  object-fit: contain;
  margin-top: 3px;
}

.logo-horizontal:hover {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--warm-gray);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--stendhal-red), var(--soft-gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--stendhal-red);
  background-color: rgba(160, 30, 43, 0.05);
}

/* Stile speciale per il link Prenota */
.nav-link-cta {
  background: linear-gradient(135deg, var(--stendhal-red), var(--soft-gold)) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(160, 30, 43, 0.3);
  border: none !important;
}

.nav-link-cta::after {
  display: none !important;
}

.nav-link-cta:hover {
  background: linear-gradient(135deg, var(--soft-gold), var(--stendhal-red)) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(160, 30, 43, 0.4);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--stendhal-red);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Main content */
.main-content {
  margin-top: 0;
}

/* Other sections need the margin when they're first */
.main-content .section:first-child:not(.hero-section) {
  margin-top: 90px;
}

/* Hero Section Artistica con Background Artistico */
.hero-section {
  margin-top: 90px;
  min-height: 80vh;
  background: linear-gradient(135deg, rgba(160, 30, 43, 0.8) 0%, rgba(212, 165, 116, 0.6) 100%), 
              url('/static/gian_nic.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* iOS/Mobile fallback */
@supports not (background-attachment: fixed) {
  .hero-section {
    background-attachment: scroll;
  }
}


.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(160, 30, 43, 0.5) 100%);
  z-index: 1;
}


.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--soft-gold), white);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--stendhal-red), var(--soft-gold));
  color: white;
  box-shadow: 0 4px 15px rgba(160, 30, 43, 0.3);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--stendhal-red);
  border: 2px solid var(--stendhal-red);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 30, 43, 0.4);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-shape {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, var(--stendhal-red), var(--soft-gold));
  border-radius: 50% 20% 40% 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

/* Sezioni contenuto artistiche */
.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--pure-white);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--stendhal-red), var(--soft-gold));
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Sezione servizi */
.services-artistic {
  background: linear-gradient(135deg, var(--deep-black) 0%, var(--warm-gray) 100%);
  color: white;
  position: relative;
}


.services-artistic .section-container {
  position: relative;
  z-index: 2;
}

.services-artistic .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.services-artistic .section-title::after {
  background: linear-gradient(90deg, var(--soft-gold), white);
}

.services-artistic p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Services preview */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--stendhal-red) 0%, transparent 70%);
  opacity: 0.1;
  transition: all 0.3s ease;
}

.service-card:hover::before {
  opacity: 0.2;
  transform: scale(1.2);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(160, 30, 43, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: var(--stendhal-red);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--stendhal-red);
  margin-bottom: 1rem;
}

/* Cards artistiche */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--stendhal-red), var(--soft-gold));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(160, 30, 43, 0.2);
}

.card h3 {
  color: var(--stendhal-red);
  margin-bottom: 1rem;
}

/* Sezione CTA con background salone */
.cta-salon-bg {
  background: linear-gradient(135deg, rgba(160, 30, 43, 0.8) 0%, rgba(212, 165, 116, 0.7) 100%), 
              url('/static/salone.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
}

.cta-salon-bg .section-container {
  position: relative;
  z-index: 2;
}

.cta-salon-bg .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-salon-bg .section-title::after {
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
}

.cta-salon-bg p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Footer artistico */
.footer {
  background: linear-gradient(135deg, var(--deep-black) 0%, var(--warm-gray) 100%);
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer p {
  opacity: 0.8;
}

/* Animazioni */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--warm-cream);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-shape {
    height: 300px;
  }

  .cta-buttons {
    justify-content: center;
  }

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

  /* Mobile adjustments */
  .hero-section {
    min-height: 60vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .logo-horizontal {
    height: 28px;
    max-width: 160px;
  }
  
  .footer .footer-content > div:last-child {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}