/* ==========================================================================
   DIESSE FORMAZIONE - Foglio di stile principale (Locale & Self-Hosted)
   ========================================================================== */

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lato-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lato-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/lato-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato Local';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900.woff2') format('woff2');
}

:root {
  /* Colori estratti dal logo ufficiale Diesse Formazione */
  --ds-navy: #041E42;
  --ds-navy-dark: #021229;
  --ds-navy-light: #0A3166;
  --ds-blue: #1E73BE;
  --ds-blue-bright: #2589E5;
  --ds-blue-soft: #EBF4FC;
  --ds-orange: #F5820D;
  --ds-orange-dark: #D96E00;
  --ds-orange-soft: #FFF5EB;

  /* Superfici e testi */
  --bg-page: #F6F8FB;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;

  /* Ombre e raggi */
  --shadow-sm: 0 2px 8px rgba(4, 30, 66, 0.05);
  --shadow-md: 0 10px 28px rgba(4, 30, 66, 0.08);
  --shadow-lg: 0 20px 44px rgba(4, 30, 66, 0.13);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato Local', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(4, 30, 66, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ds-navy);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--ds-blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ds-orange);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 130, 13, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background-color: var(--ds-orange-dark);
  transform: translateY(-1px);
}

.header-cta svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   HERO & AVVISO RESTYLING (Stile immagine di riferimento)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #F8FAFC;
  background-image: radial-gradient(rgba(15, 23, 42, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.restyling-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #C2410C;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--ds-orange);
  box-shadow: 0 0 0 0 rgba(245, 130, 13, 0.75);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 130, 13, 0.75);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(245, 130, 13, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 130, 13, 0);
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ds-navy);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero-title-blue {
  color: var(--ds-blue);
}

.hero-title-grey {
  color: #64748B;
}

.hero-title-orange {
  color: var(--ds-orange);
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 30px;
  line-height: 1.62;
}

.hero-lead strong {
  color: var(--ds-navy);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ds-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30, 115, 190, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--ds-navy);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--ds-navy);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ds-blue);
  color: var(--ds-blue);
  background-color: #F8FAFC;
  transform: translateY(-1px);
}

/* ==========================================================================
   SEZIONI GENERALI
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-blue);
  background-color: var(--ds-blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  color: var(--ds-navy);
  line-height: 1.22;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.06rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALITÀ DI EROGAZIONE & PERCORSI AZIENDE
   ========================================================================== */
.delivery-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.delivery-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.delivery-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: var(--ds-blue-soft);
  color: var(--ds-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.delivery-icon svg {
  width: 26px;
  height: 26px;
}

.delivery-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ds-navy);
  margin-bottom: 8px;
}

.delivery-card p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.corporate-banner {
  background: linear-gradient(135deg, var(--ds-orange-soft) 0%, #FFF9F2 100%);
  border: 1.5px solid rgba(245, 130, 13, 0.35);
  border-left: 6px solid var(--ds-orange);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.corporate-banner-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.corporate-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--ds-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corporate-icon svg {
  width: 25px;
  height: 25px;
}

.corporate-banner h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ds-navy);
  margin-bottom: 4px;
}

.corporate-banner p {
  font-size: 0.97rem;
  color: var(--text-main);
}

.corporate-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ds-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.corporate-pill:hover {
  background-color: var(--ds-blue);
}

/* ==========================================================================
   FILTRI & GRIGLIA CORSI UNIFICATA
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  appearance: none;
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--ds-navy);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--ds-blue);
  color: var(--ds-blue);
}

.filter-btn.active {
  background-color: var(--ds-navy);
  border-color: var(--ds-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(4, 30, 66, 0.2);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 115, 190, 0.35);
}

.course-card.featured-ai {
  border: 2px solid var(--ds-orange);
  background: linear-gradient(180deg, #FFFBF7 0%, #FFFFFF 35%);
}

.course-card.featured-ms {
  border-top: 4px solid var(--ds-blue);
}

.course-card.hidden-card {
  display: none;
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.course-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-icon svg {
  width: 24px;
  height: 24px;
}

.icon-ms {
  background-color: #EBF4FC;
  color: #1E73BE;
}

.icon-ai {
  background-color: #FFF2E2;
  color: #F5820D;
}

.icon-cad {
  background-color: #EEF2FF;
  color: #3730A3;
}

.icon-web {
  background-color: #ECFDF5;
  color: #047857;
}

.icon-base {
  background-color: #F1F5F9;
  color: #041E42;
}

.course-badge {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
}

.badge-ai {
  background-color: var(--ds-orange);
  color: #FFFFFF;
}

.badge-ms {
  background-color: var(--ds-blue-soft);
  color: var(--ds-blue);
}

.badge-cat {
  background-color: #F1F5F9;
  color: var(--ds-navy);
}

.course-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ds-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.course-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.course-tags span {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ds-navy);
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   BOX INFORMATIVO NON VINCOLANTE & PROSSIME DATE
   ========================================================================== */
.info-notice-box {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--ds-navy) 0%, var(--ds-navy-light) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: center;
}

.info-notice-content h3 {
  font-size: 1.42rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.info-notice-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.info-notice-content p:last-child {
  margin-bottom: 0;
}

.info-notice-highlight {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(245, 130, 13, 0.65);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.info-notice-highlight .eyebrow-call {
  display: inline-block;
  background-color: var(--ds-orange);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.info-notice-highlight p {
  font-size: 0.96rem;
  color: #FFFFFF;
  margin-bottom: 14px;
  font-weight: 600;
}

.call-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #FFFFFF;
  color: var(--ds-navy);
  font-weight: 900;
  font-size: 1.08rem;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.call-now-btn:hover {
  background-color: var(--ds-orange-soft);
  transform: translateY(-2px);
}

.call-now-btn svg {
  width: 20px;
  height: 20px;
  color: var(--ds-orange);
  flex-shrink: 0;
}

/* ==========================================================================
   SEZIONE CONTATTI DIRETTI (SENZA FORM)
   ========================================================================== */
.contact-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--ds-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-blue);
  margin-bottom: 8px;
}

.contact-main-value {
  display: block;
  font-size: 1.24rem;
  font-weight: 900;
  color: var(--ds-navy);
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

a.contact-main-value:hover {
  color: var(--ds-orange);
}

.contact-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.interno-badge {
  display: inline-block;
  margin-top: 6px;
  background-color: var(--ds-orange-soft);
  color: var(--ds-orange-dark);
  border: 1px solid rgba(245, 130, 13, 0.35);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--ds-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 46px 0 34px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  background-color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.footer-logo-wrap img {
  height: 44px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

.footer-links a {
  color: #FFFFFF;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-notice-box {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .delivery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .corporate-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 58px 0 68px;
  }

  .section {
    padding: 56px 0;
  }

  .brand-logo img {
    height: 42px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 11px 14px;
  }
}