/* ============================================================
   Orientamenti Pedagogici — custom.css
   Palette primaria: #ac2433 (rosso Unisal)
   Personalizza qui senza toccare index.html
   ============================================================ */

/* --- Variabili -------------------------------------------- */
:root {
  --op-red:        #ac2433;
  --op-red-dark:   #8a1b27;
  --op-red-light:  #b12535;
  --op-text:       #1a1a2e;
  --op-muted:      #5a5a72;
  --op-border:     #e2e2ec;
  --op-bg-light:   #f8f7f5;
  --op-bg-white:   #ffffff;
  --op-accent-bg:  #7a1220;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* --- Base -------------------------------------------------- */
body {
  font-family: var(--font-sans);
  color: var(--op-text);
  background: var(--op-bg-white);
  -webkit-font-smoothing: antialiased;
}

/* --- Navbar ------------------------------------------------ */
.op-navbar {
  background-color: var(--op-red-light);
  padding: 0.75rem 0;
}

.op-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.op-brand-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.op-brand-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.op-btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.op-btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Hero -------------------------------------------------- */
.op-hero {
  background: linear-gradient(135deg, var(--op-accent-bg) 0%, var(--op-red) 60%, #c03040 100%);
  min-height: 88vh;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.op-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.op-label-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
}

.op-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.op-hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: 0.5rem;
}

.op-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 480px;
  margin-top: 1.25rem;
}

.op-btn-primary {
  background: #fff;
  color: var(--op-red);
  border: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.op-btn-primary:hover {
  background: #f0f0f0;
  color: var(--op-red-dark);
  transform: translateY(-1px);
}

.op-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
  font-weight: 500;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.op-btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* Placeholder copertine nell'hero */
.op-hero-covers {
  display: flex;
  align-items: center;
  height: 100%;
}

.op-cover {
  position: absolute;
  width: 180px;
  height: 250px;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.op-cover--main {
  bottom: 0;
  left: 20px;
  z-index: 2;
}

.op-cover--back {
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}

.op-cover-placeholder {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
}

.op-cover-placeholder--light {
  background: linear-gradient(160deg, #2d2d4e 0%, #1a1a2e 100%);
}

.op-cover-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.op-cover-vol,
.op-cover-num {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Stats strip ------------------------------------------ */
.op-stats-strip {
  background: var(--op-text);
  padding: 2.5rem 0;
}

.op-stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.op-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* --- Sezioni generiche ------------------------------------ */
.op-section-light {
  background: var(--op-bg-light);
  padding: 5rem 0;
}

.op-section-white {
  background: var(--op-bg-white);
  padding: 5rem 0;
}

.op-section-accent {
  background: linear-gradient(135deg, var(--op-accent-bg) 0%, var(--op-red) 100%);
  padding: 5rem 0;
}

.op-section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--op-red);
  display: block;
  margin-bottom: 0.75rem;
}

.op-section-tag--light {
  color: rgba(255,255,255,0.65);
}

.op-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--op-text);
  line-height: 1.25;
}

.op-title-light {
  color: #fff;
}

.op-section-intro {
  font-size: 1.05rem;
  color: var(--op-muted);
  margin-top: 0.75rem;
}

.op-intro-light {
  color: rgba(255,255,255,0.75);
}

/* --- Corpo testo ------------------------------------------ */
.op-body-text {
  font-size: 1rem;
  color: var(--op-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* --- Feature cards (sezione rivista) ---------------------- */
.op-feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.op-feature-card:hover {
  border-color: var(--op-red);
  box-shadow: 0 4px 20px rgba(172, 36, 51, 0.08);
}

.op-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(172, 36, 51, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--op-red);
}

.op-feature-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--op-text);
  margin-bottom: 0.35rem;
}

.op-feature-desc {
  font-size: 0.875rem;
  color: var(--op-muted);
  margin: 0;
  line-height: 1.6;
}

/* --- Issue cards (ultimi numeri) -------------------------- */
.op-issue-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--op-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.op-issue-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.op-issue-cover {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.op-cover-placeholder--alt {
  background: linear-gradient(160deg, #2d2d4e 0%, #1a1a2e 100%);
}

.op-issue-cover-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.op-issue-cover-inner span {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.op-issue-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.op-issue-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--op-red);
  margin-bottom: 0.4rem;
}

.op-issue-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--op-text);
  flex: 1;
  margin-bottom: 0.75rem;
}

.op-issue-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--op-red);
  text-decoration: none;
}

.op-issue-link:hover {
  color: var(--op-red-dark);
  text-decoration: underline;
}

/* --- Plan cards (abbonamento) ----------------------------- */
.op-plan-card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.op-plan-card--featured {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.5);
  padding-top: 2.75rem;
}

.op-plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--op-red);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.9rem;
  border-radius: 0 0 6px 6px;
  white-space: nowrap;
}

.op-plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.op-plan-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
}

.op-plan-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.op-plan-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

.op-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.op-plan-features li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.op-plan-features li:last-child {
  border-bottom: none;
}

.op-plan-features li .bi-check2 {
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.op-erickson-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* --- Footer ----------------------------------------------- */
.op-footer {
  background: var(--op-red-light);
  padding: 2.5rem 0;
  border-top: 3px solid var(--op-red);
}

.op-footer-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.op-footer-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.6;
}

.op-footer-links {
  margin-bottom: 0.5rem;
}

.op-footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.op-footer-links a:hover {
  color: #fff;
}

.op-footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ============================================================
   AREA PERSONALIZZAZIONI — aggiungi qui il tuo CSS custom
   ============================================================ */
   .logo-img {
      width: 250px;
    }
