/* 
   Emanuela Valenzano - Biologa Nutrizionista
   Premium Design System 
*/

:root {
  /* Nuova Palette Premium (colori del bigliettino da visita "EV") */
  --color-primary: #536A4C;
  /* Verde Logo EV */
  --color-primary-dark: #3F513A;
  --color-secondary: #FFFFFF;
  /* Sfondo Bianco Puro come il bigliettino */
  --color-accent: #7A986F;
  /* Verde Foglia Chiaro */
  --color-text: #4A4A4A;
  /* Grigio scuro per alta leggibilità */
  --color-text-light: #777777;
  --color-white: #FFFFFF;

  /* Gradiente Premium basato sul verde */
  --gradient-primary: linear-gradient(135deg, #54774B 0%, #3E5B37 100%);
  --gradient-accent: linear-gradient(135deg, #769E6B 0%, #54774B 100%);

  /* Typography */
  --font-main: 'Montserrat', sans-serif;
  /* Headings */
  --font-body: 'Open Sans', sans-serif;
  /* Body text */

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Transitions & Shadows */
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(31, 60, 94, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-secondary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title span {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-main);
  line-height: 1.1;
  text-align: left;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav .btn-sm {
  margin-left: 20px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Offset for fixed header */
}

.hero-content {
  flex: 1;
  padding-right: 50px;
  animation: fadeInLeft 1s ease;
}

.hero-image {
  flex: 1;
  height: 80%;
  background-color: #e0e0e0;
  /* Placeholder color before image */
  border-radius: 20px 0 0 20px;
  position: relative;
  overflow: hidden;
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
  animation: fadeInRight 1s ease;

  /* Placeholder image style - remove if real image provided */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
  display: block;
}

.hero-tags {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
}

/* About Section */
.about {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  background: var(--gradient-accent);
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services */
.services {
  padding: var(--spacing-xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Contact */
.contact {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
}

.contact h2 {
  color: var(--color-white);
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* Footer */
footer {
  background-color: #222;
  color: #888;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding-bottom: 50px;
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
    margin-top: 50px;
  }

  .hero-image {
    width: 100%;
    height: 400px;
    border-radius: 0;
    margin-top: 30px;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Header mobile */
  header {
    padding: 12px 0;
  }

  .logo img {
    height: 44px !important;
  }

  .logo span:first-child {
    font-size: 0.85rem !important;
  }

  /* Hide desktop nav and CTA button on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
  }

  .nav-cta {
    display: none;
  }

  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .hamburger:hover {
    background: rgba(83, 106, 76, 0.1);
  }

  .hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--color-primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}