/* === Generale === */
body {
  font-family: 'Roboto', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #004466, #006699);
  padding: 60px 0;
  border-bottom: 4px solid #003350;
}
.hero h1 {
  font-weight: 700;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* === Navbar === */
.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #66c2ff !important;
}

/* === Profile Card === */
.profile-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  cursor: pointer;
}
.profile-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.profile-card .card-top-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-card .card-top-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
.profile-card .profile-img {
  width: 80px;
  height: 80px;
  margin: -40px auto 10px auto;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #007bff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.profile-card .profile-img i {
  font-size: 1.8rem;
  color: #007bff;
}
.profile-card h6 {
  font-weight: 700;
  margin-top: 10px;
}
.profile-card p {
  font-size: 0.85rem;
  padding: 0 10px;
  color: #555;
}
.profile-card .card-social {
  margin-top: 10px;
}
.profile-card .card-social i {
  margin: 0 6px;
  color: #007bff;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.profile-card .card-social i:hover {
  color: #0056b3;
}

/* === Card dimensioni generiche === */
.card-hover {
  position: relative;
  background-color: #ffffff; /* Sfondo bianco */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
  padding-bottom: 1rem; /* spazio per la linea */
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.card-hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: var(--card-accent, #0d6efd); /* linea personalizzabile */
}



.card-rectangle {
  height: 200px;
}

.small-card i {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: #007bff;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.card-body h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.card-body p.card-desc {
  font-size: 0.85rem;
  font-weight: normal;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* === Contact form === */
.contact-form {
  background: #fff;
  border-radius: 12px;
  max-width: 350px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.contact-form h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004466;
}
.form-control:focus, .form-select:focus, textarea:focus {
  box-shadow: 0 0 6px rgba(0,123,255,0.4);
  border-color: #80bdff;
  outline: none;
}

/* === Login form specific styles === */
.login-form .form-control,
.login-form .form-select,
.login-form textarea {
  background-color: #fff !important;
  border: 1px solid #ced4da;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #212529;
}

.login-form .form-control:hover,
.login-form .form-select:hover,
.login-form textarea:hover {
  border-color: #0d6efd;
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.3);
}

.login-form .form-control:focus,
.login-form .form-select:focus,
.login-form textarea:focus {
  background-color: #fff !important;
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.5);
  outline: none;
}

/* Placeholder colore login */
.login-form .form-control::placeholder,
.login-form textarea::placeholder {
  color: #6c757d;
}

.login-form label {
  cursor: text;
}

/* === Buttons === */
.btn-gradient {
  background: linear-gradient(45deg, #28a745, #218838);
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  background: linear-gradient(45deg, #218838, #1e7e34);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004080);
}

.btn-secondary {
  background: linear-gradient(45deg, #6c757d, #495057);
  border: none;
}
.btn-secondary:hover {
  background: linear-gradient(45deg, #495057, #343a40);
}

.btn-light {
  border: none;
}

/* === Modal === */
.modal-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid #007bff;
}

.modal-body {
  font-family: 'Open Sans', sans-serif;
}

.modal-body h5 {
  font-weight: 600;
  margin: 0.5rem 0;
}

.modal-body p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: #555;
}

.modal-body .price {
  font-size: 1.2rem;
  color: #28a745;
  font-weight: 600;
  margin: 0.5rem 0;
}

.modal-body .btn {
  min-width: 120px;
}

/* === Footer === */
footer {
  background: #222;
  color: #ccc;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}

/* === AOS === */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* === Media Queries === */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .card-rectangle {
    height: auto;
  }
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}




.latest-posts .post-card {
  background: #f9f9fc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.latest-posts .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.btn-gradient {
  background: linear-gradient(45deg, #0d6efd, #0a58ca);
  border: none;
  color: #fff;
  font-weight: 500;
}
.btn-gradient:hover {
  background: linear-gradient(45deg, #0a58ca, #06357c);
}





/*footer.json PROMO*/

/* --- CONTAINER GENERALE --- */
.bookshelf-footer, .buy-footer-container, .promo-footer, .shelf-footer {
  width: 95%;
  max-width: 1200px;
  margin: 48px auto 36px auto;
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(20,40,60,0.10), 0 1.5px 0 #ebecef;
  padding: 38px 16px 58px 16px;
  background: #fff;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- RIGA DI CARDS --- */
.bookshelf-row, .academy-courses-row, .buy-courses-row, .promo-row, .shelf-courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px 30px;
  margin-bottom: 24px;
}

/* --- CARD BASE (UNICA PER TUTTE!) --- */
.book-card, .buy-card, .academy-card, .promo-box, .shelf-course {
  background: #f7fafd;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(40,100,160,0.09);
  padding: 18px 16px 22px 16px;
  min-width: 180px;
  max-width: 220px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.16s, box-shadow 0.16s;
  justify-content: flex-start;
  margin-bottom: 0;
}

/* --- CARD HOVER --- */
.book-card:hover, .buy-card:hover, .academy-card:hover, .promo-box:hover, .shelf-course:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 12px 34px rgba(19,113,247,0.14), 0 6px 16px #f0f6fa;
  z-index: 2;
}

/* --- COVER/IMMAGINE DELLA CARD --- */
.book-cover, .academy-card-img, .buy-card-img, .promo-box img, .shelf-course img {
  width: 85px;
  height: 85px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(120,170,220,0.10);
  object-fit: contain;
}

/* --- BADGE PROMO --- */
.academy-badge, .promo-box .badge, .buy-card .badge {
  position: absolute;
  top: -12px; left: -12px;
  background: linear-gradient(90deg, #FF9400, #FFD700 90%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 3.5px 16px;
  border-radius: 13px;
  box-shadow: 0 2px 10px #fae27777;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* --- TITOLI E SOTTOTITOLI --- */
.book-title, .academy-title, .buy-card-title, .promo-box h4, .shelf-course-title {
  font-size: 1.07rem;
  font-weight: 700;
  color: #1270f7;
  margin-bottom: 6px;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 0.01em;
}
.book-type, .academy-type, .buy-card-type, .promo-box p, .shelf-desc {
  font-size: 0.98rem;
  color: #548ae5;
  margin-bottom: 7px;
  text-align: center;
}

/* --- PREZZO --- */
.book-price, .academy-price, .buy-card-price {
  font-size: 1.19rem;
  color: #ff9400;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* --- BOTTONE CARD --- */
.btn-buy-courses, .academy-btn, .promo-footer .btn-gradient, .btn-bookshelf {
  margin-top: auto;
  width: 94%;
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, #1976d2, #13d2d2 90%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  padding: 10px 0 11px 0;
  font-size: 1.07rem;
  box-shadow: 0 2px 10px #c5daf855;
  transition: background 0.17s;
  text-decoration: none;
}
.btn-buy-courses:hover, .academy-btn:hover, .promo-footer .btn-gradient:hover, .btn-bookshelf:hover {
  background: linear-gradient(90deg, #13d2d2 60%, #1976d2 100%);
  color: #fff;
}

.bookshelf-title, .buy-footer-title, .promo-footer h3, .shelf-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: #1371f7;
  letter-spacing: 0.02em;
}

/* --- BASE SCAFFALE DECORATIVO --- */
.bookshelf-base, .shelf-base {
  position: absolute;
  bottom: 24px;
  left: 4%;
  width: 92%;
  height: 17px;
  background: linear-gradient(90deg, #e5dbbe 40%, #b89166 80%, #9d7536 100%);
  border-radius: 10px 10px 24px 24px;
  box-shadow: 0 9px 34px rgba(140,100,64,0.09);
  z-index: 1;
  opacity: 0.65;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .bookshelf-footer, .buy-footer-container, .promo-footer, .shelf-footer { padding: 20px 4px 30px 4px; }
  .bookshelf-row, .academy-courses-row, .buy-courses-row, .promo-row, .shelf-courses { gap: 16px 8px; }
}
@media (max-width: 600px) {
  .bookshelf-footer, .buy-footer-container, .promo-footer, .shelf-footer { padding: 7px 2vw 20px 2vw; }
  .bookshelf-row, .academy-courses-row, .buy-courses-row, .promo-row, .shelf-courses { gap: 10px 2px; }
  .book-card, .buy-card, .academy-card, .promo-box, .shelf-course { min-width: 94vw; max-width: 94vw; }
  .bookshelf-title, .buy-footer-title, .promo-footer h3, .shelf-title { font-size: 1.18rem; }
}


.academy-card {
  background: url('images/tex.png') center center/cover no-repeat, #f6f9ff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(60,80,140,0.07);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s;
}

/* Per una variante con filtro colore blu */
.academy-card.blue {
  filter: hue-rotate(10deg) saturate(1.2);
}

/* Per una variante più viola */
.academy-card.purple {
  filter: hue-rotate(200deg) saturate(1.1);
}

/* Variante con filtro verde */
.academy-card.green {
  filter: hue-rotate(70deg) saturate(1.2);
}




/* /assets/css/style.css – override: pulsanti identici */

/* 1) Misure uniformi (puoi regolare i valori) */
:root{
  --card-btn-h: 52px;   /* altezza pulsante */
  --card-btn-w: 200px;  /* larghezza pulsante fissa desktop/tablet */
}

/* 2) Bottoni card: stessa larghezza+altezza per tutte le varianti */
.btn-buy-courses,
.academy-btn,
.promo-footer .btn-gradient,
.btn-bookshelf{
  /* dimensione */
  width: var(--card-btn-w);
  max-width: 94%;              /* perché: evita overflow su card strette */
  height: var(--card-btn-h);
  /* layout */
  align-self: center;          /* perché: centra dentro la card */
  margin-top: auto;
  padding: 0 14px;             /* niente padding verticale */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* testo */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* icone coerenti */
.btn-buy-courses i,
.academy-btn i,
.promo-footer .btn-gradient i,
.btn-bookshelf i{
  line-height: 1;
  flex: 0 0 auto;
}

/* 3) Mobile: larghezza piena card */
@media (max-width: 600px){
  .btn-buy-courses,
  .academy-btn,
  .promo-footer .btn-gradient,
  .btn-bookshelf{
    width: 100%;
    max-width: 100%;
    height: 48px;
  }
}




