/* ===========================================
   PRIMA DELLA CURA - STYLES
   Progetto editoriale indipendente
   =========================================== */

/* --- CSS RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 32px;
  mix-blend-mode: difference;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #f8f8f8;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: #fff;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: #1a1a1a;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-italic {
  font-style: italic;
  opacity: 0.8;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #666;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.5s ease;
}

.hero-cta:hover {
  background: #1a1a1a;
  color: #fff;
  opacity: 1;
}

.arrow-down {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}

.section-white {
  background: #fff;
}

.section-light {
  background: #fafafa;
}

.section-dark {
  background: #1a1a1a;
  color: #fff;
}

/* --- CONTESTO SECTION --- */
.section-grid {
  display: grid;
  gap: 32px;
  align-items: baseline;
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr 2fr;
    gap: 48px;
  }
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.4);
}

.section-content {
  max-width: 700px;
}

.lead-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.body-text {
  font-size: 1.125rem;
  color: #666;
  font-weight: 300;
  line-height: 1.8;
}

.divider {
  width: 60px;
  height: 1px;
  background: rgba(26, 26, 26, 0.1);
  margin-top: 48px;
}

/* --- MISSION SECTION --- */
.mission-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.mission-icon {
  font-size: 1.5rem;
  color: #1a1a1a;
  opacity: 0.6;
  margin-bottom: 24px;
}

.mission-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 32px;
}

.mission-text {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #666;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}

.mission-text strong {
  color: #1a1a1a;
  font-weight: 500;
}

.mission-subtext {
  font-size: 1.125rem;
  color: rgba(102, 102, 102, 0.8);
}

/* --- TWO COLUMNS --- */
.two-columns {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.column-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

.column-title-muted {
  color: rgba(26, 26, 26, 0.7);
}

.column-alt {
  position: relative;
}

@media (min-width: 768px) {
  .column-alt::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(200, 100, 100, 0.2), transparent);
  }
}

/* --- LISTS --- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.9);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.check-list li:hover .check-icon {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.dot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dot-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 300;
  color: #666;
  transition: color 0.3s ease;
}

.dot-list li:hover {
  color: #1a1a1a;
}

.dot-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(180, 100, 100, 0.5);
  flex-shrink: 0;
}

/* --- UTILITY SECTION --- */
.utility-header {
  margin-bottom: 64px;
}

.utility-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.utility-subtitle {
  font-size: 1.25rem;
  color: #666;
  font-weight: 300;
  max-width: 500px;
}

/* --- CARDS --- */
.cards-grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: rgba(255, 255, 255, 0.5);
  padding: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-highlight {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #666;
}

.card-list li::before {
  content: '›';
  color: rgba(26, 26, 26, 0.3);
  font-weight: 300;
}

/* --- TRANSPARENCY SECTION --- */
.transparency-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.transparency-icon {
  font-size: 2rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.transparency-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 32px;
}

.transparency-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* --- FOOTER --- */
.footer {
  background: #fafafa;
  padding: 80px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.05);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.footer-claim {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 24px;
}

.footer-note {
  font-size: 0.875rem;
  color: rgba(102, 102, 102, 0.6);
}

/* --- SCROLL NAVIGATION BUTTONS (Mobile Only) --- */
.scroll-nav-btn {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.08);
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-nav-btn:hover {
  background: rgba(26, 26, 26, 0.15);
  opacity: 1;
}

.scroll-nav-btn svg {
  animation: bounce 2s infinite;
}

.section-dark .scroll-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-dark .scroll-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.section-light .scroll-nav-btn {
  background: rgba(26, 26, 26, 0.06);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 767px) {
  .section {
    position: relative;
    padding: 64px 0 80px 0;
  }
  
  .hero {
    padding-bottom: 80px;
  }
  
  .scroll-nav-btn {
    display: flex;
  }
  
  .nav {
    padding: 16px 20px;
  }
  
  .utility-header {
    margin-bottom: 40px;
  }
  
  .card {
    padding: 32px;
  }
}
