:root {
  --accent: #f97316;
  --text: #f1f5f9;
  --muted: #cbd5e1;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Sfondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(10, 15, 25, 0.75), rgba(10, 15, 25, 0.85)),
    url("sfondo.png") center/cover no-repeat;
  z-index: -1;
  opacity: 0.9;
}

/* Barra superiore */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(10, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.header-bar img {
  width: 200px;
  height: auto;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-bar img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Layout principale */
.wrapper {
  max-width: 1100px;
  width: 100%;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  margin: 160px auto 100px auto;
  padding: 0 1.5rem;
}


/* Layout singola colonna centrale (per corso01.php) */
.wrapper-center {
  max-width: 900px;
  margin: 160px auto 100px auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.wrapper-center .card {
  max-width: 900px;
  width: 100%;
}

@media (max-width: 880px) {
  .wrapper {
    grid-template-columns: 1fr;
    margin-top: 140px;
  }
  .header-bar {
    height: 50px;
  }
  .header-bar img {
    width: 220px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.3rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.social-icon--linkedin {
  background: #e0f2ff;
  color: #0a66c2;
}

.social-icon--facebook {
  background: #e8effd;
  color: #1877f2;
}

.social-icon--mail {
  background: rgba(249, 115, 22, 0.16);
  color: #f97316;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 2.8rem;
  background: rgba(10, 15, 25, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.45);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer .social-links {
  margin: 0;
}

.highlight {
  color: #fff;
  font-weight: 500;
}

.card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.2rem;
  padding: 1.8rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.ul-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}

.ul-check li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #f8fafc;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: white;
  flex: 0 0 20px;
}

/* Bottoni */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, #f97316 0%, #fb923c 100%);
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}


.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, #f97316 0%, #fb923c 100%);
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.8rem;
  display: block;
}

/* FORM */
.contact-form {
  display: block;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-group label {
  font-size: 0.75rem;
  color: #e2e8f0;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 0.55rem 0.6rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border: 1px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.08);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* Tabelle per seo.php */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.stats-table th,
.stats-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.4rem;
  text-align: left;
}

.stats-table th {
  color: #fff;
  font-weight: 500;
}

/* Card messaggi (success/error) dentro le card */
.card .card {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
}


/* --- ACCORDION PER PROGRAMMA CORSO --- */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.accordion-item {
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.accordion-header {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  color: #e2e8f0;
}

.accordion-header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.accordion-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.accordion-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.accordion-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.85);
  color: var(--muted);
}

.accordion-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.accordion-subtitle {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.9);
}

.accordion-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(90deg);
  background: linear-gradient(120deg, #f97316 0%, #fb923c 100%);
  border-color: transparent;
  color: #0f172a;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.95rem;
  background: rgba(15, 23, 42, 0.96);
  transition: max-height 0.22s ease, padding-bottom 0.22s ease;
}

.accordion-item.open .accordion-content {
  padding-bottom: 0.85rem;
}

.accordion-content-inner {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.45rem;
  padding-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.accordion-content-inner h4 {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.78rem;
  color: #e5e7eb;
  font-weight: 600;
}

.accordion-content-inner p {
  margin: 0;
  line-height: 1.5;
}

.accordion-content-inner ul {
  margin: 0.2rem 0 0 1.1rem;
  padding: 0;
  list-style: disc;
}

.accordion-content-inner li {
  margin-bottom: 0.15rem;
}

.btn-back-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* --- PASSWORD DIALOG --- */
.password-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.password-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.2rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.password-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.password-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.password-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.password-actions .btn-secondary,
.password-actions .btn-primary {
  flex: 1;
  min-width: 120px;
  justify-content: center;
  padding: 0.35rem 1.5rem;
}

.error-msg {
  display: none;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fee2e2;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.error-msg.visible {
  display: block;
}

