:root {
  --bg-page: #f4f5fb;
  --bg-card: #ffffff;
  --accent: #1a73e8;
  --accent-soft: #e3f2fd;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --tag-bg: #eef2ff;
  --tag-text: #4338ca;
  --danger: #b91c1c;
  --radius-card: 14px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.2s ease;
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(
    circle at top left,
    #e0edff 0,
    #f4f5fb 45%,
    #fdfdfd 100%
  );
  color: var(--text-main);
}

/* Wrapper principale */

.wrap-servizio {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Card centrale */

.card-servizio {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative; /* <--- AGGIUNTO */
}

/* Bottone guida fissato in alto a destra nella card */
.btn-guida-top {
  position: absolute;
  top: 2.2rem; /* allineato circa all'h1 */
  right: 2.25rem;
}

.btn-guida {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-guida:hover {
  background: #0f5fd4;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

/* Header del servizio */

.servizio-header {
  margin-bottom: 1.75rem;
}

.servizio-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.servizio-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.servizio-header h1 {
  font-size: 2rem;
  margin: 0.25rem 0 0.75rem;
}

.servizio-slug {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.servizio-slug code {
  background: #111827;
  color: #e5e7eb;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.lead-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Meta info */

.servizio-meta {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
  margin-top: 1rem;
}

.servizio-meta h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.servizio-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.servizio-meta dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.servizio-meta dd {
  margin: 0.15rem 0 0.4rem;
  font-weight: 500;
}

/* Sezioni generiche */

.servizio-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
}

.servizio-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tag / etichette */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

/* Documentazione */

.documentazione {
  line-height: 1.7;
}

.documentazione h2,
.documentazione h3,
.documentazione h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.documentazione ul,
.documentazione ol {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Guida */

.btn-guida {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.servizio-header-top .btn-guida {
  margin-top: 0.15rem;
}

.btn-guida:hover {
  background: #0f5fd4;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

/* Voci di menu collegate */

.lista-collegamenti {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista-collegamenti li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.menu-icona .material-symbols-outlined {
  font-size: 1.1rem;
  vertical-align: middle;
}

.menu-testo {
  font-size: 0.95rem;
}

.menu-link-slug {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Servizi correlati */

.correlati ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.correlati li {
  margin: 0.3rem 0;
}

.correlati a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.correlati a:hover {
  text-decoration: underline;
}

.correlato-slug {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.appuntamento-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
}

.btn-appuntamento {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.6);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background-color 0.18s ease-out,
    color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}

.btn-appuntamento .material-symbols-outlined {
  font-size: 1.1rem;
}

.btn-appuntamento:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-appuntamento.open {
  background: var(--accent);
  color: #ffffff;
}

.box-appuntamento {
  margin-top: 1rem;
  padding: 1.2rem 1.1rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
}

.form-appuntamento {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-appuntamento .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-appuntamento label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-appuntamento label small {
  font-weight: 400;
  color: var(--text-muted);
}

.form-appuntamento input,
.form-appuntamento textarea {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.form-appuntamento input:focus,
.form-appuntamento textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.hint-contatto {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .btn-appuntamento.invia {
  background: var(--accent);
  color: #ffffff;
  border: none;
}

.form-actions .btn-appuntamento.invia:hover {
  background: #0f5fd4;
}

.app-hr {
  border: none;
  border-top: 1px dashed var(--border-soft);
  margin: 0.8rem 0 0.9rem;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Orari sede: bolle ultra-compatte */
.orari-bolle {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orari-bolle__track {
  display: flex;
  gap: 8px;
  padding: 2px 2px;
  min-width: max-content;
}

.orario-bolla {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 88px;
  text-align: center;
  line-height: 1.1;
  background: rgba(0, 0, 0, 0.02);
}

.orario-bolla.is-today {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
}

.ob-giorno {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
}

.ob-slot {
  font-size: 12px;
  opacity: 0.9;
}

/* ============ CUSTOM DATE PICKER ============ */
.appuntamento-section .dp-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.appuntamento-section .dp-btn__label {
  font-weight: 600;
}
.appuntamento-section .dp-btn__value {
  opacity: 0.75;
}

.appuntamento-section .dp-hint {
  display: block;
  margin-top: 6px;
  opacity: 0.75;
}

.appuntamento-section .dp-modal[hidden] {
  display: none !important;
}
.appuntamento-section .dp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.appuntamento-section .dp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.appuntamento-section .dp-modal__panel {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 12px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.appuntamento-section .dp-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.appuntamento-section .dp-title {
  font-weight: 800;
}
.appuntamento-section .dp-sub {
  opacity: 0.7;
  font-size: 13px;
  margin-top: 2px;
  white-space: pre-line;
}
.appuntamento-section .dp-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.appuntamento-section .dp-body {
  padding: 12px 14px;
}
.appuntamento-section .dp-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .appuntamento-section .dp-cols {
    grid-template-columns: 1fr;
  }
}

.appuntamento-section .dp-col__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.appuntamento-section .dp-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}
.appuntamento-section .dp-day {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.02);
}
.appuntamento-section .dp-day.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.appuntamento-section .dp-day.is-selected {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.06);
}
.appuntamento-section .dp-day__top {
  font-weight: 800;
  font-size: 13px;
}
.appuntamento-section .dp-day__bot {
  opacity: 0.75;
  font-size: 12px;
  margin-top: 4px;
}

.appuntamento-section .dp-slots {
  min-height: 220px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
}
.appuntamento-section .dp-group {
  margin-bottom: 10px;
}
.appuntamento-section .dp-group__title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}
.appuntamento-section .dp-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.appuntamento-section .dp-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.appuntamento-section .dp-chip:hover {
  background: rgba(0, 0, 0, 0.04);
}
.appuntamento-section .dp-chip.is-picked {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.08);
}
.appuntamento-section .dp-empty {
  opacity: 0.7;
  padding: 6px;
}

.appuntamento-section .dp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.appuntamento-section .dp-clear,
.appuntamento-section .dp-close {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

@media (min-width: 900px) {
  /* su desktop prova a farle stare tutte senza scroll (se c'è spazio) */
  .orari-bolle {
    overflow-x: visible;
  }
  .orari-bolle__track {
    flex-wrap: nowrap;
  }
}

/* ----------------------------------------- */
/*   COMPATTAZIONE SOLO PER LE 3 SEZIONI     */
/*   Pubblico – Etichette – Partecipanti     */
/* ----------------------------------------- */

.servizio-section.servizio-section--compact {
  margin: 8px 0;
  padding: 0;
  border: none;
}

.servizio-section.servizio-section--compact .tag-list,
.servizio-section.servizio-section--compact .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
}

.servizio-section.servizio-section--compact .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.8rem;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
  border: none;
}

.servizio-section.servizio-section--compact .tag .tag-icon {
  font-size: 14px;
  margin-right: 4px;
  border: none;
}

@media (max-width: 768px) {
  .date-grid {
    grid-template-columns: 1fr;
  }

  .servizio-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsivo */

@media (max-width: 640px) {
  .card-servizio {
    padding: 1.75rem 1.5rem;
  }

  .servizio-header h1 {
    font-size: 1.6rem;
  }

  .servizio-meta dl {
    grid-template-columns: 1fr;
  }
}

.gol-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gol-highlight {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.gol-kpi {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1.05rem;
}
.gol-kpi .material-symbols-outlined {
  color: var(--blu);
  background: var(--oro);
  border-radius: 10px;
  padding: 6px;
  line-height: 1;
  font-size: 22px;
}

.gol-h3 {
  margin: 6px 0 0;
}

.gol-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.gol-cta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--oro);
  color: var(--blu);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
}
.gol-cta .material-symbols-outlined {
  font-size: 22px;
}

.gol-hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 6px 0;
}

.gol-p {
  margin: 0;
}

.gol-contacts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gol-contact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 12px;
}
.gol-contact .material-symbols-outlined {
  color: var(--oro);
  background: var(--blu);
  border-radius: 10px;
  padding: 6px;
  line-height: 1;
  font-size: 22px;
}

.gol-note {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .gol-contacts {
    grid-template-columns: 1fr;
  }
}

/* CTA CANDIDATI – LAVORA CON NOI */
.gol-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(135deg, var(--blu), var(--blu-t));
  border-radius: 16px;
  text-align: center;
}

.gol-cta-text {
  color: var(--bianco);
  font-size: 1.05rem;
  max-width: 520px;
}

.btn-gol-candidati {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--oro);
  color: var(--blu);
  font-weight: 900;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
}

.btn-gol-candidati:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.btn-gol-candidati .material-symbols-outlined {
  font-size: 24px;
}

/* =====================================
   CTA FINANZIAMENTI – NEWSLETTER / FNA
   ===================================== */

.fin-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(135deg, var(--blu), var(--blu-t));
  border-radius: 16px;
  text-align: center;
}

/* Effetto luce elegante */
.fin-cta-box::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  transform: rotate(25deg);
}

.fin-cta-text {
  color: #ffffff;
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.5;
  z-index: 1;
}

.btn-finanziamenti {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ffd700, #f4c430);
  color: #0b3c5d;
  font-weight: 900;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  z-index: 1;
}

.btn-finanziamenti:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.btn-finanziamenti .material-symbols-outlined {
  font-size: 22px;
}

/* =====================================
   STILI PER SLUG "STUDIO" (IOSTUDIO)
   ===================================== */

.stu-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Pannello highlight con i dati chiave */
.stu-highlight {
    display: grid;
    gap: 12px;
    background: #f0f7ff; /* Blu chiarissimo */
    border: 1px solid #c2d9ff;
    border-radius: 12px;
    padding: 16px;
}

.stu-kpi {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #003366; /* Blu scuro istituzionale */
}

.stu-kpi .material-symbols-outlined {
    color: #ffffff;
    background: #003399; /* Blu Europa */
    border-radius: 10px;
    padding: 8px;
    line-height: 1;
    font-size: 20px;
}

.stu-h3 {
    margin: 8px 0 0;
    font-size: 1.15rem;
    color: #003399;
    border-left: 4px solid #ffcc00; /* Giallo Europa */
    padding-left: 10px;
}

.stu-p {
    margin: 0;
    line-height: 1.6;
}

.stu-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.stu-list li strong {
    color: #003399;
}

/* Box di avviso/info importante */
.stu-cta-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff9e6; /* Giallo chiarissimo */
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.95rem;
}

.stu-cta-info .material-symbols-outlined {
    color: #ffcc00;
    font-size: 24px;
}

.stu-hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

.stu-note {
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =====================================
   CTA FINALE - PULSANTE INVIO DOMANDA
   ===================================== */

.stu-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #003399 0%, #002266 100%); /* Gradiente Blu Europa */
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 51, 153, 0.2);
}

.stu-cta-text {
    color: #ffffff;
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.5;
    z-index: 2;
}

/* Bottone specifico "Presenta Domanda" */
.btn-studenti {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #ffcc00; /* Giallo Europa */
    color: #003399;      /* Testo Blu */
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 2;
    border: 2px solid transparent;
}

.btn-studenti:hover {
    transform: translateY(-3px);
    background: #ffd633;
    box-shadow: 0 12px 24px rgba(255, 204, 0, 0.5);
    color: #001a4d;
}

.btn-studenti .material-symbols-outlined {
    font-size: 24px;
}

/* Decorazione stelline (richiamo bandiera UE) - Opzionale */
.stu-cta-box::before {
    content: "★";
    position: absolute;
    top: 10%;
    left: 5%;
    color: rgba(255, 204, 0, 0.2);
    font-size: 2rem;
}

.stu-cta-box::after {
    content: "★";
    position: absolute;
    bottom: 10%;
    right: 5%;
    color: rgba(255, 204, 0, 0.2);
    font-size: 1.5rem;
}

/* =====================================
   FIX CONTRASTO CTA STUDENTI
   ===================================== */

.stu-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    /* Usiamo un blu solido o un gradiente molto scuro per far risaltare il bianco */
    background: #003399 !important; 
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 51, 153, 0.2);
}

.stu-cta-text {
    /* Il bianco ora risalterà sul blu scuro */
    color: #ffffff !important; 
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.6;
    z-index: 2;
    margin-bottom: 5px;
}

/* Testo piccolo in basso */
.stu-cta-box .hint-contatto {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    z-index: 2;
}

/* Il pulsante giallo deve staccare nettamente */
.btn-studenti {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #ffcc00 !important; 
    color: #003399 !important; 
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 2;
    border: none;
}

.btn-studenti:hover {
    transform: translateY(-2px);
    background: #ffe033 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
/* =====================================================================
   v1 redesign — PAGINA SERVIZIO (stile demo pagina_servizio.html)
   Append additivo: re-skinna il markup esistente verso l'estetica demo.
   Scope #contenuto => vince per specificita' senza !important.
   Usa i token globali di variables.css (--blu/--oro/--ink/--muted/--line...).
   ===================================================================== */
#contenuto .wrap-servizio {
  max-width: 1080px;
  margin: 0 auto;
}
#contenuto .card-servizio {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 26px rgba(0, 51, 153, .10);
  border: 1px solid var(--line);
  padding: 30px 32px;
  color: var(--ink);
}
/* header servizio */
#contenuto .servizio-header h1 {
  color: var(--blu);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-size: clamp(28px, 4vw, 40px);
}
#contenuto .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
#contenuto .servizio-slug code {
  background: rgba(0, 51, 153, .10);
  color: var(--blu);
}
/* sezioni: separatore morbido + titoli blu con icona oro piena */
#contenuto .servizio-section {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
}
#contenuto .servizio-section h2 {
  color: var(--blu);
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
}
#contenuto .servizio-section h2 .material-symbols-outlined {
  color: var(--oro);
  font-variation-settings: 'FILL' 1;
}
#contenuto .servizio-section p {
  color: #2a3647;
  line-height: 1.65;
}
/* checklist dei vari servizi (studio/gol/fna...) */
#contenuto .fna-list,
#contenuto .stu-list,
#contenuto .gol-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
#contenuto .fna-list li,
#contenuto .stu-list li,
#contenuto .gol-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #2a3647;
  line-height: 1.5;
}
#contenuto .fna-list li::before,
#contenuto .stu-list li::before,
#contenuto .gol-list li::before {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  color: var(--verde);
  font-size: 21px;
  flex-shrink: 0;
  line-height: 1.3;
}
/* tag come pill blu/oro */
#contenuto .tag,
#contenuto .tag-list .tag,
#contenuto .tags .tag {
  background: rgba(0, 51, 153, .07);
  color: var(--blu);
  border: 1px solid transparent;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  transition: background .2s, color .2s;
}
#contenuto .tag:hover {
  background: var(--oro);
  color: var(--blu-dark-soft);
}
#contenuto .tag .tag-icon { color: inherit; }
/* bottone guida -> pill oro */
#contenuto .btn-guida {
  background: var(--oro);
  color: var(--blu-dark-soft);
  font-weight: 700;
  border: none;
}
#contenuto .btn-guida:hover {
  background: #ffd633;
  box-shadow: 0 6px 16px rgba(255, 204, 0, .35);
}

/* ---- Prenotazione appuntamento (pannello stile demo "Prenota ora") ---- */
#contenuto .appuntamento-section {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
}
/* toggle "Prenota / Richiedi appuntamento" come CTA oro */
#contenuto .btn-appuntamento {
  background: var(--oro);
  color: var(--blu-dark-soft);
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
}
#contenuto .btn-appuntamento:hover,
#contenuto .btn-appuntamento.open {
  background: #ffd633;
  color: var(--blu-dark-soft);
  box-shadow: 0 6px 16px rgba(255, 204, 0, .35);
}
/* campi del form */
#contenuto .form-appuntamento input,
#contenuto .form-appuntamento textarea,
#contenuto .form-appuntamento select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  font-family: var(--font-ui);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
#contenuto .form-appuntamento input:focus,
#contenuto .form-appuntamento textarea:focus,
#contenuto .form-appuntamento select:focus {
  outline: none;
  border-color: var(--oro);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .18);
}
/* submit invia -> pieno oro */
#contenuto .form-actions .btn-appuntamento.invia {
  background: var(--oro);
  color: var(--blu-dark-soft);
}
/* datepicker buttons (dp-btn): card chiara con etichetta blu */
#contenuto .appuntamento-section .dp-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 51, 153, .06);
}
#contenuto .appuntamento-section .dp-btn__label { color: var(--muted); }
#contenuto .appuntamento-section .dp-btn__value { color: var(--blu); font-weight: 700; }
#contenuto .appuntamento-section .dp-day.is-selected,
#contenuto .appuntamento-section .dp-chip.is-picked {
  background: var(--blu);
  color: var(--oro);
}
