/* AIC Corsi Redesign: hero, badge Google, carosello recensioni, FAQ, anteprima */

/* Raleway locale per la vecchia regola @font-face del tema (evita la chiamata a fonts.gstatic.com) */
@font-face { font-family: 'raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/raleway-400-normal-latin.woff2) format('woff2'); }

/* ---------- Stelle ---------- */
.aic-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; vertical-align: middle; }
.aic-stars svg { display: inline-block; vertical-align: middle; margin-right: 1px; }
.aic-stars-bg svg { fill: #cfcfcf; }
.aic-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.aic-stars-fg svg { fill: #fbbc04; }
.aic-grating-dark .aic-stars-bg svg, .aic-rev .aic-stars-bg svg { fill: rgba(255, 255, 255, .3); }

/* ---------- Badge punteggio Google ---------- */
.aic-grating { display: inline-flex; align-items: center; gap: 12px; line-height: 1.2; font-family: inherit; }
.aic-grating-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
.aic-grating-body { display: inline-flex; flex-direction: column; gap: 3px; }
.aic-grating-score { display: inline-flex; align-items: center; gap: 7px; }
.aic-grating-num { font-weight: 700; font-size: 18px; }
.aic-grating-count { font-size: 13px; opacity: .9; text-decoration: underline; }
.aic-grating-dark, .aic-grating-dark .aic-grating-word, .aic-grating-dark .aic-grating-count { color: #fff; }
.aic-grating-light, .aic-grating-light .aic-grating-count { color: #222; }
.aic-grating-light .aic-grating-word { color: #5f6368; }
.aic-grating-small .aic-grating-logo { font-size: 18px; }
.aic-grating-small .aic-grating-num { font-size: 16px; }

/* ---------- Hero (sezione con classe aic-hero) ---------- */
.aic-hero .sh-heading-content, .aic-hero h1, .aic-hero h2, .aic-hero p { color: #fff; }
.aic-hero h1 .aic-h1-sub { font-weight: 400; }
.aic-hero .aic-hero-trust p { font-weight: 700; font-size: 15px; line-height: 1.5; color: #fff; }
.aic-hero .aic-hero-media .aic-grating { margin-top: 14px; }
.aic-hero .sh-output-html { line-height: 1.2; }
@media (min-width: 768px) {
	.aic-hero { min-height: 520px; }
	.aic-hero .aic-hero-media .sh-single-image .sh-element-margin { margin-bottom: 0; }
}
@media (max-width: 767px) {
	.aic-hero h1 { font-size: 26px; line-height: 1.2; text-align: center; }
	.aic-hero h1 .aic-h1-main { text-transform: uppercase; }
	.aic-hero h1 .aic-h1-sep { display: none; }
	.aic-hero h1 .aic-h1-sub { display: block; font-size: 20px; margin-top: 4px; }
	.aic-hero .aic-hero-media .aic-grating { margin: -34px auto 18px; position: relative; z-index: 2; width: -moz-max-content; width: max-content; max-width: 94%; background: rgba(0, 0, 0, .74); border-radius: 12px; padding: 8px 14px; }
	.aic-hero .aic-hero-media .sh-output-html { text-align: center; }
	.aic-hero .aic-hero-copy .sh-column-wrapper { display: flex; flex-direction: column; }
	.aic-hero .aic-hero-copy .sh-button-container { order: -1; margin-bottom: 24px; }
	.aic-hero .aic-hero-copy .sh-button-container .sh-element-margin { margin: 0; }
	.aic-hero .aic-hero-copy .sh-button { display: block; width: 100%; text-align: center; text-transform: uppercase; font-weight: 700; }
	.aic-hero .aic-hero-copy h2 { text-align: center; font-size: 22px; }
	.aic-hero .aic-hero-copy .sh-text-block { text-align: center; }
}

/* ---------- Carosello recensioni Google ---------- */
.aic-rev { background: #121212; color: #fff; border-radius: 18px; padding: 28px 24px 30px; margin: 10px auto 30px; max-width: 1140px; box-sizing: border-box; }
.aic-rev *, .aic-rev *::before, .aic-rev *::after { box-sizing: border-box; }
.aic-rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-bottom: 22px; }
.aic-rev-title { font-weight: 700; font-size: 20px; color: #fff; }
.aic-rev-summary { font-size: 15px; opacity: .9; }
.aic-rev-all, .aic-rev-all:hover { font-size: 14px; color: #fff; text-decoration: underline; }
.aic-rev-wrap { position: relative; padding: 0 50px; }
.aic-rev-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; outline: none; }
.aic-rev-track::-webkit-scrollbar { display: none; }
.aic-rev-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: #1f1f1f; border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.aic-rev-card-head { display: flex; align-items: center; gap: 10px; }
.aic-rev-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; background: #333; }
.aic-rev-avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; background: #3b6ea5; }
.aic-rev-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.aic-rev-name { font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aic-rev-when { font-size: 12px; opacity: .75; }
.aic-rev-text { font-size: 14px; line-height: 1.55; margin: 0; color: #e8e8e8; }
.aic-rev-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.aic-rev-more, .aic-rev-more:hover, .aic-rev-more:focus { -webkit-appearance: none; appearance: none; align-self: flex-start; background: none; border: 0; padding: 0; margin: 0; color: #9ecbff; font-size: 13px; line-height: 1.4; cursor: pointer; text-decoration: underline; box-shadow: none; }
.aic-rev-link, .aic-rev-link:hover { margin-top: auto; font-size: 12px; color: #bbb; text-decoration: underline; }
.aic-rev-nav, .aic-rev-nav:hover, .aic-rev-nav:focus { -webkit-appearance: none; appearance: none; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; margin: 0; box-shadow: none; }
.aic-rev-nav:hover { background: rgba(255, 255, 255, .22); }
.aic-rev-prev { left: 0; }
.aic-rev-next { right: 0; }
@media (max-width: 991px) { .aic-rev-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) {
	.aic-rev { padding: 22px 12px 24px; border-radius: 14px; }
	.aic-rev-wrap { padding: 0 38px; }
	.aic-rev-card { flex-basis: 100%; }
	.aic-rev-nav { width: 32px; height: 32px; font-size: 24px; }
}

/* ---------- FAQ ---------- */
.aic-faq { max-width: 960px; margin: 0 auto; }
.aic-faq-item { border-bottom: 1px solid #e3e3e3; }
.aic-faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.aic-faq-q::-webkit-details-marker { display: none; }
.aic-faq-q::marker { content: ''; }
.aic-faq-q h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; color: #222; }
.aic-faq-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #eb5757; position: relative; }
.aic-faq-icon::before, .aic-faq-icon::after { content: ''; position: absolute; background: #eb5757; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.aic-faq-icon::before { width: 12px; height: 2px; }
.aic-faq-icon::after { width: 2px; height: 12px; }
.aic-faq-item[open] .aic-faq-icon::after { display: none; }
.aic-faq-a { padding: 0 44px 20px 0; font-size: 16px; line-height: 1.6; color: #444; }
.aic-faq-a p:last-child { margin-bottom: 0; }

/* ---------- Docenti ---------- */
.aic-docenti .sh-team-name h3 { font-size: 18px; }

/* ---------- Anteprima e avvisi ---------- */
.aic-preview-ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: #b3261e; color: #fff; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .4px; padding: 6px 10px; }
.aic-admin-hint { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin: 10px 0; }
