
/* =====================================================
   STILE GLOBALE – Portale Videolezioni
   Associazione / Corsi / Donazioni
   ===================================================== */

/* ---------- VARIABILI ---------- */
:root{
  --bg: #f7f7f7;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;

  --brand: #ffd000;        /* giallo principale */
  --brand-dark: #000000;
  --accent: #0f62fe;

  --success: #16a34a;
  --danger: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 12px 30px rgba(0,0,0,.12);
  --shadow-sm: 0 6px 16px rgba(0,0,0,.08);

  --maxw: 1100px;
}

/* ---------- RESET BASE ---------- */
*{ box-sizing:border-box }
html{ scroll-behavior:smooth }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{ max-width:100%; display:block }
a{ color:var(--accent); text-decoration:none }
a:hover{ text-decoration:underline }

/* ---------- LAYOUT ---------- */
.container{
  width: min(100%, var(--maxw));
  margin-inline:auto;
  padding:24px;
}

.grid{ display:grid; gap:24px }
.grid-2{ grid-template-columns: 1fr }
.grid-3{ grid-template-columns: 1fr }

@media(min-width:900px){
  .grid-2{ grid-template-columns: 1.2fr .8fr }
  .grid-3{ grid-template-columns: repeat(3,1fr) }
}

/* ---------- HEADER / FOOTER ---------- */
header{
  background:var(--white);
  box-shadow:var(--shadow-sm);
}

footer{
  background:#0f0f0f;
  color:#bbb;
  margin-top:40px;
}

footer a{ color:#fff }

/* ---------- TITOLI ---------- */
h1{
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.15;
  margin:0 0 12px;
}
h2{
  font-size:1.6rem;
  margin:0 0 10px;
}
h3{
  font-size:1.2rem;
  margin:0 0 8px;
}

.lead{
  font-size:1.2rem;
  color:#333;
}

.muted{ color:var(--muted) }

/* ---------- BOTTONI ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  border:2px solid var(--brand-dark);
  background:var(--brand);
  color:var(--brand-dark);
  box-shadow:var(--shadow-sm);
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}

.btn.secondary{
  background:transparent;
  border:1px solid #ddd;
  color:var(--text);
  box-shadow:none;
}

/* ---------- CARD ---------- */
.card{
  background:var(--white);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-sm);
}

/* ---------- FORM ---------- */
form{
  display:grid;
  gap:12px;
}

label{
  font-weight:600;
  font-size:.95rem;
}

input, select{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid #ddd;
  font-size:1rem;
}

input:focus{
  outline:none;
  border-color:var(--accent);
}

/* ---------- ERRORI / MESSAGGI ---------- */
.error{
  background:#fff0f0;
  border:1px solid #f3bcbc;
  color:#7a1212;
  padding:10px 14px;
  border-radius:var(--radius-sm);
}

.success{
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  padding:10px 14px;
  border-radius:var(--radius-sm);
}

/* ---------- DONAZIONE PAYPAL ---------- */
.donation-box{
  background:#111;
  color:#fff;
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.donation-price{
  display:inline-block;
  background:var(--brand);
  color:#000;
  padding:6px 10px;
  border-radius:6px;
  font-weight:800;
}

/* ---------- VIDEO ---------- */
.video-wrapper{
  background:#000;
  border-radius:var(--radius);
  overflow:hidden;
}

video{
  width:100%;
  max-height:520px;
  background:#000;
}

/* ---------- LISTE ---------- */
.list{
  padding-left:18px;
}
.list li{
  margin:6px 0;
}

/* ---------- NAV UTENTE ---------- */
.user-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.user-nav a{
  font-weight:600;
}

/* ---------- MOBILE ---------- */
@media(max-width:600px){
  .btn{ width:100% }
}

.checkout-logo {
  text-align: center;
  margin-bottom: 16px;
}

.checkout-logo img {
  max-width: 220px;
  height: auto;
}

