/* =====================================================================
   DPL Accademy - tema grafico allineato a www.dplaccademy.it
   Caricato DOPO i css Webflow: sovrascrive colori, font, header e footer.
   ===================================================================== */

:root {
  --dpl-bg: #F0EBE7;          /* sfondo pagina */
  --dpl-text: #424242;        /* testo */
  --dpl-heading: #353630;     /* titoli */
  --dpl-primary: #6A1E3A;     /* bordeaux */
  --dpl-primary-dark: #3B0D1E;
  --dpl-primary-hover: #501629;
  --dpl-header: #AA8C92;      /* header rosa antico */
  --dpl-footer: #C4A7AE;      /* bordeaux 33% su sfondo */
  --dpl-light: #F0EBE7;
  --dpl-border: #E7E7E7;
  --dpl-header-h: 94px;

  /* variabili Webflow rimappate sulla palette www */
  --_colors-mode-theme---primary--base: #6A1E3A;
  --_colors-mode-theme---primary--dark: #6A1E3A;
  --_colors-mode-theme---primary--darker: #3B0D1E;
  --_colors-mode-theme---primary--light: #F0EBE7;
}

/* ---------- Base ---------- */
html, body { background-color: var(--dpl-bg); }
body {
  font-family: "Inter Tight", sans-serif !important;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dpl-text);
}
.page-wrapper, .main-wrapper { background-color: var(--dpl-bg); }
h1, h2, h3, h4, h5, h6,
.title-xlarge, .title-large, .title-medium, .title-small, .title-xsmall,
.heading-style-h1, .heading-style-h2, .heading-style-h3, .heading-style-h4,
.paragraph-xlarge, .paragraph-large, .paragraph-medium, .paragraph-small,
.text-size-medium, .text-size-regular, .form_input, .form_form_label, .button,
input, select, textarea, button {
  font-family: "Inter Tight", sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.title-xlarge, .title-large, .title-medium, .title-small,
.heading-style-h1, .heading-style-h2, .heading-style-h3 {
  color: var(--dpl-heading);
  font-weight: 500;
}
a { color: var(--dpl-primary); }
.text-color-secondary { color: var(--dpl-text); }

/* ---------- Bottoni ---------- */
.button, .w-button {
  background-color: var(--dpl-primary);
  color: var(--dpl-light);
  border: 0;
  border-radius: 32px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 400;
  transition: background-color .2s ease;
}
.button:hover, .w-button:hover { background-color: var(--dpl-primary-hover); color: var(--dpl-light); }
.button.is-secondary {
  background-color: transparent;
  color: var(--dpl-primary);
  border: 1px solid var(--dpl-primary);
}
.button.is-secondary:hover { background-color: var(--dpl-primary); color: var(--dpl-light); }
.button.is-white { background-color: var(--dpl-light); color: var(--dpl-primary); }

/* ---------- Form ---------- */
.form_input, .w-input, .w-select {
  background-color: #fff;
  border: 1px solid var(--dpl-border);
  border-radius: 0;
  min-height: 50px;
  padding: 6px 14px;
  font-size: 16px;
  color: #000;
}
.form_input:focus, .w-input:focus, .w-select:focus {
  border-color: var(--dpl-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 30, 58, .15);
}
.form_form_label { font-weight: 500; color: var(--dpl-heading); }

/* Box del login stile "Richiedi assistenza" di www */
.dpl-card {
  background-color: var(--dpl-primary);
  border-radius: 8px;
  padding: 32px 24px;
  color: var(--dpl-light);
}
.dpl-card h2, .dpl-card .heading-style-h2 { color: #F0F3F3; font-size: 40px; line-height: 1.2; }
.dpl-card p, .dpl-card .form_form_label { color: var(--dpl-light); }
.dpl-card .button:not(#btnAccediN) { background-color: #313636; border-radius: 0; }
.dpl-card .button:not(#btnAccediN):hover { background-color: #000; }
.dpl-card #linkRecuperaPassword { color: var(--dpl-light) !important; }

/* ---------- Header (come www) ---------- */
.dpl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--dpl-header);
  font-family: "Inter Tight", sans-serif;
}
.dpl-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--dpl-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dpl-header__logo img { display: block; width: 157px; height: auto; }
.dpl-nav { display: flex; align-items: center; }
.dpl-nav ul { list-style: none; margin: 0; padding: 0; }
.dpl-nav > ul { display: flex; align-items: center; }
.dpl-nav li { position: relative; }
.dpl-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--dpl-light);
  text-decoration: none;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.dpl-nav > ul > li > a:hover,
.dpl-nav > ul > li.is-active > a { background-color: var(--dpl-primary-dark); color: var(--dpl-light); }
.dpl-nav .dpl-caret { width: 10px; height: 10px; fill: currentColor; }

/* sottomenu */
.dpl-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 10;
}
.dpl-nav ul ul ul { top: 0; left: 100%; }
.dpl-nav li:hover > ul,
.dpl-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.dpl-nav ul ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 300;
  color: #33373D;
  text-decoration: none;
  white-space: nowrap;
}
.dpl-nav ul ul a:hover,
.dpl-nav ul ul li.is-active > a { background-color: var(--dpl-primary); color: var(--dpl-light); }
.dpl-nav ul ul .dpl-caret { transform: rotate(-90deg); }

/* hamburger */
.dpl-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, .06);
  color: var(--dpl-primary-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.dpl-burger svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 1024px) {
  .dpl-burger { display: flex; }
  .dpl-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dpl-header);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .dpl-header.is-open .dpl-nav { max-height: 80vh; overflow-y: auto; }
  .dpl-nav > ul { flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 16px; }
  .dpl-nav > ul > li > a { border-radius: 0; justify-content: space-between; }
  .dpl-nav ul ul,
  .dpl-nav ul ul ul {
    position: static;
    min-width: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, .92);
  }
  .dpl-nav li.is-open > ul { display: block; }
  .dpl-nav ul ul ul a { padding-left: 36px; }
  .dpl-nav ul ul .dpl-caret { transform: none; }
}

/* ---------- Hero pagine interne (come www) ---------- */
.dpl-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: 50% 50%;
  color: var(--dpl-light);
}
.dpl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #353630;
  opacity: .65;
}
.dpl-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 12px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.dpl-hero h1 {
  margin: 0;
  color: var(--dpl-light);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.2;
}
.dpl-hero p { margin: 0 0 20px; color: var(--dpl-light); font-size: 15px; font-weight: 300; }
.dpl-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dpl-light); }
.dpl-breadcrumb a { color: var(--dpl-light); text-decoration: underline; text-decoration-color: var(--dpl-primary); text-underline-offset: 4px; }
.dpl-breadcrumb svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 767px) {
  .dpl-hero { min-height: 420px; align-items: center; }
  .dpl-hero__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 64px 16px; }
  .dpl-hero h1 { font-size: 36px; }
  .dpl-breadcrumb { justify-content: center; }
}

/* ---------- Footer (come www) ---------- */
.dpl-footer { background-color: var(--dpl-footer); color: var(--dpl-primary-dark); font-family: "Inter Tight", sans-serif; }
.dpl-footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 12px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
}
.dpl-footer img { width: 157px; height: auto; display: block; margin-bottom: 20px; }
.dpl-footer p { margin: 0 0 24px; font-size: 15px; font-weight: 300; line-height: 24px; color: var(--dpl-primary-dark); }
.dpl-footer h4 { margin: 0 0 20px; font-size: 20px; font-weight: 500; color: var(--dpl-primary-dark); }
.dpl-footer ul { list-style: none; margin: 0; padding: 0; }
.dpl-footer__menu li { margin-bottom: 10px; }
.dpl-footer a { color: var(--dpl-primary-dark); text-decoration: none; font-weight: 300; }
.dpl-footer a:hover { color: var(--dpl-primary); text-decoration: underline; }
.dpl-social { display: flex; gap: 10px; }
.dpl-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dpl-primary); color: var(--dpl-light);
  display: flex; align-items: center; justify-content: center;
}
.dpl-social a:hover { background: var(--dpl-primary-dark); color: var(--dpl-light); }
.dpl-social svg { width: 16px; height: 16px; fill: currentColor; }
.dpl-contacts li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dpl-contacts .dpl-ico {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--dpl-primary-dark); color: var(--dpl-light);
  display: flex; align-items: center; justify-content: center;
}
.dpl-contacts svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dpl-footer__bottom { background-color: var(--dpl-primary); color: var(--dpl-light); }
.dpl-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
}
.dpl-footer__bottom a { color: var(--dpl-light); }
.dpl-footer__bottom a:hover { color: #fff; }
.dpl-footer__bottom strong { font-weight: 500; }
.dpl-footer__legal { display: flex; align-items: center; gap: 10px; }
.dpl-footer__legal svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 991px) {
  .dpl-footer__top { grid-template-columns: 1fr 1fr; }
  .dpl-footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .dpl-footer__top { grid-template-columns: 1fr; padding: 56px 16px; gap: 36px; }
  .dpl-footer__bottom-inner { flex-direction: column; padding: 24px 16px; }
}

/* ---------- Area corsisti: griglia corsi ed eventi ---------- */
.corsi-table { background: #fff; box-shadow: none; border: 1px solid var(--dpl-border); border-radius: 8px; }
.corsi-table thead { background: var(--dpl-primary) !important; color: var(--dpl-light); }
.corsi-table th { font-weight: 500; }
.corsi-table tbody tr:hover { background-color: #F7F2F4; }
.btn-action { border-radius: 32px; box-shadow: none; font-family: "Inter Tight", sans-serif; }
.btn-vedi, .btn-back { background: var(--dpl-primary) !important; }
.btn-vedi:hover, .btn-back:hover { background: var(--dpl-primary-hover) !important; }
.btn-attestato { background: var(--dpl-primary-dark) !important; }
.btn-attestato:hover { background: #000 !important; }
.btn-back { border-radius: 32px; }

/* niente sfondi bianchi "vecchi" sulle sezioni Webflow */
.section_contact2, .section_content, .section_header, .section_home-hero {
  background-color: transparent;
}

/* box login centrato */
.contact2_component.dpl-card { max-width: 560px; margin: 0 auto; }
.dpl-card .margin-xxlarge { margin-bottom: 1.5rem; }
.dpl-card .max-width-large { max-width: 100%; }

/* pagina 404 */
.utility-page_component { height: auto; min-height: 0; padding: 80px 20px; }
