/* ============================================
   KOLBRAIN — Global Design System
   Stile base: LandingPage WMP
   Font: Playfair Display + Source Sans 3
   Palette: Teal / Arancio / Dark
   ============================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== VARIABILI ===== */
:root {

  /* Colori principali */
  --orange:        #EA580C;
  --orange-hover:  #C2410C;
  --orange-light:  #FFF7ED;
  --teal-vivid:    #0D9488;
  --teal-bright:   #14B8A6;
  --teal-light:    #CCFBF1;
  --teal-bg:       #F0FDFA;
  --indigo:        #6366F1;
  --indigo-bg:     #EEF2FF;

  /* Neutri */
  --ink:           #111827;
  --dark:          #1E293B;
  --slate:         #334155;
  --gray:          #64748B;
  --light-gray:    #94A3B8;
  --off-white:     #F8FAFC;
  --white:         #FFFFFF;

  /* Font */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', -apple-system, Segoe UI, sans-serif;

  /* Dimensioni testo */
  --text-xs:       12px;
  --text-sm:       13px;
  --text-base:     16px;
  --text-md:       18px;
  --text-lg:       20px;

  /* Spaziature sezioni */
  --section-padding:        100px 28px;
  --section-padding-mobile: 76px 20px;
  --container-max:          1100px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-full: 100px;

  /* Ombre */
  --shadow-sm:   0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  font-size: var(--text-md);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
}

/* ===== TIPOGRAFIA ===== */
.section-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal-vivid);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ink);
  font-weight: 700;
}

.section-intro {
  font-size: 19px;
  color: var(--slate);
  max-width: 640px;
  line-height: 1.7;
}

/* ===== BOTTONI ===== */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 18px 44px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(234,88,12,0.35);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal-vivid);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  border: 2px solid var(--teal-vivid);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--teal-bg);
  color: var(--teal-vivid);
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid #E2E8F0;
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-accent-orange { border-top: 5px solid var(--orange); }
.card-accent-teal   { border-top: 5px solid var(--teal-vivid); }
.card-accent-indigo { border-top: 5px solid var(--indigo); }
.card-accent-dark   { border-top: 5px solid var(--dark); }

/* ===== TAG ===== */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.tag-orange { color: var(--orange);     background: var(--orange-light); }
.tag-teal   { color: var(--teal-vivid); background: var(--teal-light); }
.tag-indigo { color: var(--indigo);     background: var(--indigo-bg); }
.tag-dark   { color: var(--dark);       background: #F1F5F9; }

/* ===== CARD TITOLO E TESTO ===== */
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

.card-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
}

/* ===== SEZIONI SFONDO ===== */
.section-white    { background: var(--white); }
.section-offwhite { background: var(--off-white); }

.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-dark .section-label { color: var(--teal-bright); }
.section-dark .section-title { color: var(--white); }

.section-teal {
  background: var(--teal-bg);
  border-top: 1px solid #99F6E4;
  border-bottom: 1px solid #99F6E4;
}

/* ===== STEP (How it works) ===== */
.step {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s;
}

.step:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(20,184,166,0.25);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20,184,166,0.15);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 18px;
}

.step-title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 8px;
  color: var(--white);
}

.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ===== WHY ITEM ===== */
.why-item {
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  transition: all 0.25s;
}

.why-item:hover {
  border-color: var(--teal-vivid);
  box-shadow: 0 4px 20px rgba(13,148,136,0.08);
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 700;
}

.why-item p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
}

/* ===== CTA FORM ===== */
.cta-form {
  display: flex;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto 24px;
}

.cta-form input {
  flex: 1;
  padding: 16px 22px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.25s;
}

.cta-form input::placeholder { color: rgba(255,255,255,0.38); }
.cta-form input:focus {
  border-color: var(--teal-bright);
  background: rgba(255,255,255,0.1);
}

.cta-note {
  font-size: 14px !important;
  color: rgba(255,255,255,0.4) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px;
  text-align: center;
}

.site-footer p   { font-size: var(--text-sm); color: rgba(255,255,255,0.35); }
.site-footer a   { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer a:hover { color: var(--teal-bright); }

/* ===== PAGE HERO (standard per tutte le pagine interne) ===== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 80px 40px 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13,148,136,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(234,88,12,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .section-label {
  color: var(--teal-bright);
  justify-content: center;
  display: flex;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

/* Parole da evidenziare: teal + corsivo */
.page-hero h1 em {
  font-style: italic;
  color: var(--teal-bright);
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.70);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

@media (max-width: 640px) {
  .page-hero { padding: 56px 20px 48px; }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .grid-2col { grid-template-columns: 1fr !important; }
  .grid-5col { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 640px) {
  section { padding: var(--section-padding-mobile); }
  .cta-form { flex-direction: column; }
  .cta-form button { width: 100%; }
  .grid-5col { grid-template-columns: 1fr !important; }
  .card { padding: 28px 24px; }
}
