/*
 * Assieme: grafica per le pagine costruite con gli elementi standard di Elementor.
 * Le classi "ae-..." si trovano in Elementor, scheda Avanzate > Classi CSS.
 */

/* ---------- Base ---------- */
.ae .elementor-widget:not(:last-child) { margin-bottom: 0; }
.elementor .ae-wrap > .elementor-container { max-width: var(--container); padding-inline: 20px; margin-inline: auto; }
.ae-sec { padding: var(--space-6) 0; }
.ae-tint { background: var(--tint); }
.ae-center, .ae-center .elementor-heading-title { text-align: center; }
.ae .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .ae-sec { padding: var(--space-5) 0; } }

/* Titoli */
.ae-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.ae-eyebrow .elementor-heading-title::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.ae-light .elementor-heading-title, .ae-dark .ae-eyebrow .elementor-heading-title, .ae-cta .ae-eyebrow .elementor-heading-title { color: #fff; }
.ae-title .elementor-heading-title { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; color: var(--ink); margin: 0; }
.ae .elementor-widget.ae-title { margin-bottom: var(--space-5); }
.ae .ae-head .elementor-widget.ae-title { margin-bottom: 0; }
.ae-dark .ae-title .elementor-heading-title { color: #fff; }
.ae-lead, .ae-lead p { color: var(--muted); font-size: 1.12rem; max-width: 42ch; margin: 0; }
.ae-dark .ae-lead, .ae-dark .ae-lead p { color: rgba(255, 255, 255, .8); }
.elementor-heading-title em { font-style: normal; color: var(--accent); }
.ae-title em, .ae-title .hl { position: relative; z-index: 0; white-space: nowrap; color: inherit; }
.ae-title em::after, .ae-title .hl::after { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .06em; height: .34em; border-radius: 6px; background: var(--accent); opacity: .45; transform: skewX(-8deg); }

/* Intestazione di sezione: titolo a sinistra, testo o link a destra */
.elementor .ae-head > .elementor-container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-5); }
.elementor .ae-head > .elementor-container > .elementor-column { width: auto; max-width: 100%; }
@media (max-width: 700px) { .elementor .ae-head > .elementor-container { margin-bottom: var(--space-4); } }

/* ---------- Pulsanti ---------- */
.elementor .ae-btn .elementor-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75em 1.5em; border-radius: 999px; border: 2px solid transparent; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: .005em; text-decoration: none; box-shadow: none; transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.elementor .ae-btn .elementor-button:hover { transform: translateY(-2px); }
.elementor .ae-btn .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: .55em; }
.elementor .ae-btn .elementor-button-icon { display: inline-flex; font-size: .95em; margin: 0; }
.elementor .ae-btn .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }
.elementor .ae-btn--big .elementor-button { min-height: 56px; padding: .9em 1.8em; font-size: 1.06rem; }
.elementor .ae-btn--small .elementor-button { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.elementor .ae-btn--accent .elementor-button { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(255, 154, 0, .35); }
.elementor .ae-btn--accent .elementor-button:hover { background: var(--accent-hover); color: var(--ink); box-shadow: 0 12px 28px rgba(255, 154, 0, .45); }
.elementor .ae-btn--glass .elementor-button { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.elementor .ae-btn--glass .elementor-button:hover { background: #fff; color: var(--blue-deep); }
.elementor .ae-btn--line .elementor-button { background: transparent; border-color: var(--blue); color: var(--blue-deep); }
.elementor .ae-btn--line .elementor-button:hover { background: var(--blue); color: #fff; }
.elementor .ae-btn--block .elementor-button { display: flex; width: 100%; }
.elementor .ae-btn.elementor-widget__width-auto { margin-right: 14px; }
.ae-btns-top { margin-top: var(--space-4); }
.ae-link-more .elementor-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); color: var(--blue-deep); box-shadow: var(--shadow); font-family: var(--font-display); font-weight: 800; font-size: 1rem; transition: transform .2s var(--ease); }
.ae-link-more .elementor-button:hover { transform: translateX(4px); color: var(--blue-deep); }
.ae-link-more .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: 8px; }
.ae-link-more .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Apertura (homepage) ---------- */
.elementor-section.ae-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background-color: var(--navy); min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-6) 0 var(--space-4); background-position: center 40%; background-size: cover; }
.ae-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(100deg, rgba(10, 24, 52, .92) 0%, rgba(1, 88, 154, .78) 42%, rgba(1, 114, 193, .25) 75%, rgba(1, 114, 193, .1) 100%), linear-gradient(0deg, rgba(10, 24, 52, .75) 0%, rgba(10, 24, 52, 0) 40%); }
.ae-hero::after { content: ""; position: absolute; z-index: 0; width: 120px; height: 120px; right: 8%; top: 16%; background: var(--accent); opacity: .9; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: float 9s ease-in-out infinite; pointer-events: none; }
.elementor .ae-hero > .elementor-container { position: relative; z-index: 1; width: 100%; }
.ae-kicker .elementor-widget-container { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 600; font-size: .95rem; margin-bottom: var(--space-3); color: #fff; }
.ae-kicker .elementor-widget-container::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); }
.ae-kicker p { margin: 0; }
.ae-hero-title .elementor-heading-title { font-family: var(--font-display); color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 var(--space-3); max-width: 17ch; text-wrap: balance; }
.ae-hero-title em { position: relative; white-space: nowrap; z-index: 0; }
.ae-hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; border-radius: 99px; background: var(--grad-warm); opacity: .9; z-index: -1; }
.ae-hero-lead .elementor-widget-container, .ae-hero-lead p { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 54ch; color: rgba(255, 255, 255, .92); }
.ae-hero .ae-btn { margin-top: var(--space-4); }
.elementor .ae-pills { margin-top: var(--space-5); }
.elementor .ae-pills > .elementor-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.elementor .ae-pills > .elementor-container > .elementor-column { width: auto; }
.ae-pill .elementor-icon-box-wrapper { display: flex !important; align-items: center; gap: 14px; text-align: left !important; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; transition: transform .25s var(--ease), background-color .25s; }
.ae-pill .elementor-icon-box-wrapper:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .2); }
.ae-pill .elementor-icon-box-icon { margin: 0 !important; flex: none; line-height: 0; }
.ae-pill .elementor-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--pink); }
.ae-pill .elementor-icon svg { width: 20px; height: 20px; fill: currentColor; }
.ae-pill--events .elementor-icon { background: var(--accent); color: var(--ink); }
.ae-pill--courses .elementor-icon { background: var(--pink); }
.ae-pill--radio .elementor-icon { background: var(--cyan); }
.ae-pill--news .elementor-icon { background: var(--green); }
.ae-pill .elementor-icon-box-title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; font-weight: 800; color: #fff; }
.ae-pill .elementor-icon-box-title a, .ae-pill .elementor-icon-box-title span { color: #fff; text-decoration: none; }
.ae-pill .elementor-icon-box-description { margin: 0; font-size: .88rem; line-height: 1.4; opacity: .85; color: #fff; }
.ae-pill--radio .elementor-icon-box-description::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #FF4040; animation: pulse 1.8s infinite; vertical-align: middle; }
@media (max-width: 980px) { .elementor .ae-pills > .elementor-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.elementor-section.ae-hero { min-height: 0; padding-top: var(--space-5); }
	.ae-hero::after { width: 70px; height: 70px; right: -10px; top: 8%; }
	.ae-kicker .elementor-widget-container { font-size: .85rem; }
	.elementor .ae-pills > .elementor-container { gap: 10px; }
	.ae-pill .elementor-icon-box-wrapper { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
	.ae-pill .elementor-icon-box-description { display: none; }
}
.elementor-section.ae-marquee-sec { z-index: 2; }

/* ---------- Riquadri con foto (attività) ---------- */
.elementor .ae-pillar-grid > .elementor-container { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.elementor .ae-pillar-grid > .elementor-container > .elementor-column { width: auto; }
.elementor .ae-pillar--events, .elementor .ae-pillar--news { grid-column: span 7; }
.elementor .ae-pillar--courses, .elementor .ae-pillar--radio { grid-column: span 5; }
.elementor .ae-pillar > .elementor-widget-wrap { position: relative; isolation: isolate; overflow: hidden; align-content: flex-end; min-height: 380px; padding: var(--space-4); border-radius: var(--radius); color: #fff; background-color: var(--navy); background-size: cover; background-position: center; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.elementor .ae-pillar--events > .elementor-widget-wrap, .elementor .ae-pillar--courses > .elementor-widget-wrap { min-height: 460px; }
.elementor .ae-pillar > .elementor-widget-wrap:hover { transform: translateY(-4px); }
.ae-pillar > .elementor-widget-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ae-pillar--events > .elementor-widget-wrap::after { background: linear-gradient(185deg, rgba(255, 154, 0, .05) 20%, rgba(214, 90, 0, .55) 55%, rgba(60, 25, 0, .92) 100%); }
.ae-pillar--courses > .elementor-widget-wrap::after { background: linear-gradient(185deg, rgba(229, 25, 122, .05) 20%, rgba(190, 20, 100, .6) 55%, rgba(60, 0, 35, .92) 100%); }
.ae-pillar--radio > .elementor-widget-wrap::after { background: linear-gradient(185deg, rgba(18, 176, 238, .1) 15%, rgba(1, 100, 172, .7) 55%, rgba(5, 25, 60, .95) 100%); }
.ae-pillar--news > .elementor-widget-wrap::after { background: linear-gradient(185deg, rgba(31, 175, 110, .05) 20%, rgba(20, 130, 80, .62) 55%, rgba(5, 45, 30, .94) 100%); }
.elementor .ae-pillar .ae-pillar-num { position: absolute; top: 22px; left: 28px; width: auto; }
.ae-pillar-num .elementor-heading-title { font-family: var(--font-display); font-weight: 900; font-size: 1rem; line-height: 1; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; }
.ae-pillar-title .elementor-heading-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.03em; color: #fff; margin: 0 0 10px; }
.ae-pillar-text, .ae-pillar-text p { max-width: 44ch; font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.ae-pillar-btn { margin-top: 16px; }
.elementor .ae-pillar-btn .elementor-button { padding: 0; background: none; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.ae-pillar-btn .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: 12px; }
.elementor .ae-pillar-btn .elementor-button-icon { order: 2; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; color: var(--ink); font-size: 15px; margin: 0; transition: transform .3s var(--ease), background-color .3s; }
.ae-pillar-btn .elementor-button-icon svg { width: 15px; height: 15px; fill: currentColor; }
.ae-pillar > .elementor-widget-wrap:hover .elementor-button-icon { transform: translateX(6px) rotate(-20deg); background: var(--accent); }
/* Tutto il riquadro è cliccabile (non dentro l'editor, per poter scegliere i singoli elementi) */
body:not(.elementor-editor-active) .ae-pillar-btn .elementor-button::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body:not(.elementor-editor-active) .ae-pillar-btn, body:not(.elementor-editor-active) .ae-pillar-btn .elementor-widget-container, body:not(.elementor-editor-active) .ae-pillar-btn .elementor-button-wrapper { position: static; }
@media (max-width: 900px) {
	.elementor .ae-pillar-grid > .elementor-container { grid-template-columns: 1fr; }
	.elementor .ae-pillar--events, .elementor .ae-pillar--courses, .elementor .ae-pillar--radio, .elementor .ae-pillar--news { grid-column: auto; }
	.elementor .ae-pillar > .elementor-widget-wrap, .elementor .ae-pillar--events > .elementor-widget-wrap, .elementor .ae-pillar--courses > .elementor-widget-wrap { min-height: 340px; padding: var(--space-3); }
}

/* ---------- Sezione scura (corsi) ---------- */
.elementor-section.ae-dark { background-color: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.ae-dark::before, .ae-dark::after { content: ""; position: absolute; z-index: -1; filter: blur(10px); opacity: .55; animation: blob 14s ease-in-out infinite; pointer-events: none; }
.ae-dark::before { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle at 30% 30%, #1197E6, transparent 65%); }
.ae-dark::after { width: 600px; height: 600px; right: -200px; bottom: -220px; background: radial-gradient(circle at 60% 40%, #E5197A, transparent 62%); animation-delay: -5s; }
.ae-dark .ae-btn { margin-top: var(--space-5); }

/* ---------- Radio e Active News ---------- */
.elementor .ae-duo > .elementor-container { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.elementor .ae-duo > .elementor-container > .elementor-column { width: auto; }
.elementor .ae-duo-col > .elementor-widget-wrap { position: relative; height: 100%; border-radius: var(--radius); padding: var(--space-4); gap: var(--space-2); overflow: hidden; align-content: flex-start; }
.elementor .ae-duo-radio > .elementor-widget-wrap { background: radial-gradient(120% 90% at 100% 0%, #12B0EE 0%, rgba(18, 176, 238, 0) 55%), linear-gradient(160deg, #0B2B5C 0%, var(--navy) 100%); color: #fff; box-shadow: var(--shadow-lg); }
.elementor .ae-duo-news > .elementor-widget-wrap { background: var(--surface); box-shadow: var(--shadow); }
.ae-media-logo img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.ae-media-logo .elementor-widget-container { background: #fff; border-radius: 16px; padding: 14px 20px; transition: transform .25s var(--ease); }
.ae-duo-news .ae-media-logo .elementor-widget-container { padding: 4px 0 8px; }
.ae-media-logo .elementor-widget-container:hover { transform: translateY(-3px); }
.elementor .ae-onair { position: static; }
.ae-onair .eq { top: auto; bottom: 36px; }
.ae-duo-title .elementor-heading-title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 900; line-height: 1.05; margin: 0; color: var(--ink); }
.ae-duo-radio .ae-duo-title .elementor-heading-title { color: #fff; }
.ae-duo-lead, .ae-duo-lead p { color: rgba(255, 255, 255, .8); margin: 0; }
.ae-duo-radio .feed--list .feed__item + .feed__item { border-color: rgba(255, 255, 255, .14); }
.ae-duo-news .feed--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .elementor .ae-duo > .elementor-container { grid-template-columns: 1fr; } .elementor .ae-duo-col > .elementor-widget-wrap { padding: var(--space-3); } }
@media (max-width: 480px) { .ae-duo-news .feed--cards { grid-template-columns: 1fr; } }

/* ---------- Galleria ---------- */
.ae-gallery-sec { padding-bottom: var(--space-5); }
.ae-gallery .gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; padding-inline: 14px; max-width: 1600px; margin: 0 auto !important; }
.ae-gallery .gallery br { display: none; }
.ae-gallery .gallery-item { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; border-radius: 18px; overflow: hidden; background: var(--tint); }
.ae-gallery .gallery-icon, .ae-gallery .gallery-icon a { display: block; height: 100%; }
.ae-gallery .gallery-item img { display: block; width: 100%; height: 100% !important; object-fit: cover; border: 0 !important; border-radius: 0; transition: transform .8s var(--ease); }
.ae-gallery .gallery-item:hover img { transform: scale(1.08); }
.ae-gallery .gallery-caption { display: none; }
.ae-gallery .gallery-item:nth-of-type(1) { grid-column: span 2; grid-row: span 2; }
.ae-gallery .gallery-item:nth-of-type(4) { grid-row: span 2; }
@media (max-width: 800px) {
	.ae-gallery .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.ae-gallery .gallery-item:nth-of-type(4) { grid-row: auto; }
	.ae-gallery .gallery-item:nth-of-type(6) { grid-column: span 2; }
}

/* ---------- Fascia invito ---------- */
.elementor-section.ae-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--grad); color: #fff; padding: var(--space-6) 0; }
.ae-cta::after { content: ""; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -200px; border-radius: 50%; background: var(--accent); opacity: .25; z-index: -1; pointer-events: none; }
.elementor .ae-cta > .elementor-container { position: static; }
.elementor .ae-cta-text { width: 100%; max-width: 600px; }
.elementor .ae-cta-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.elementor .ae-cta-photo > .elementor-widget-wrap { height: 100%; background-size: cover; background-position: center 30%; }
.ae-cta-title .elementor-heading-title { font-family: var(--font-display); color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; }
.ae-cta-p, .ae-cta-p p { font-size: 1.12rem; color: #fff; }
.ae-cta .ae-btn { margin-top: var(--space-3); }
@media (max-width: 760px) { .elementor .ae-cta-photo { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; } }

/* ---------- Testata delle pagine interne ---------- */
.elementor-section.ae-pagehead { position: relative; isolation: isolate; overflow: hidden; background-color: var(--navy); background-size: cover; background-position: center 40%; color: #fff; padding: var(--space-6) 0 calc(var(--space-6) + 10px); }
.ae-pagehead::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23F6F8FC' d='M0 34c160-22 320-30 480-14s320 40 480 36 320-30 480-40v44H0z'/%3E%3C/svg%3E") bottom / 100% 50px no-repeat, linear-gradient(100deg, rgba(10, 24, 52, .93) 0%, rgba(1, 88, 154, .8) 50%, rgba(1, 114, 193, .45) 100%); }
.ae-pagehead::after { content: ""; position: absolute; right: 6%; top: 22%; width: 90px; height: 90px; z-index: 0; background: var(--accent); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: float 9s ease-in-out infinite; opacity: .9; pointer-events: none; }
.elementor .ae-pagehead > .elementor-container { position: relative; z-index: 1; }
.ae-crumbs .elementor-widget-container { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; margin-bottom: var(--space-2); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.ae-crumbs p { margin: 0; }
.ae-crumbs a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.ae-pagehead-title .elementor-heading-title { font-family: var(--font-display); color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 0; max-width: 20ch; text-wrap: balance; animation: rise .8s var(--ease) both; }
.ae-pagehead-lead, .ae-pagehead-lead p { margin-top: var(--space-2); font-size: 1.2rem; max-width: 60ch; color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) { .elementor-section.ae-pagehead { padding: var(--space-5) 0 calc(var(--space-5) + 20px); } .ae-pagehead::after { width: 54px; height: 54px; top: 12%; right: 4%; } }

/* ---------- Corpo delle pagine interne ---------- */
.ae-body { padding: var(--space-4) 0 var(--space-6); }
.elementor .ae-body > .elementor-container > .entry-content { max-width: 780px; }
.ae-body .elementor-widget.ae-btn { margin: 8px 14px 8px 0; }

/* Scheda informazioni */
.elementor .ae-scheda { margin: var(--space-3) 0 var(--space-4); }
.elementor .ae-scheda > .elementor-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.elementor .ae-scheda > .elementor-container > .elementor-column { width: auto; }
.elementor .ae-scheda-item > .elementor-widget-wrap { height: 100%; padding: 18px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border-left: 5px solid var(--blue); }
.elementor .ae-scheda > .elementor-container > .elementor-column:nth-child(4n+2) > .elementor-widget-wrap { border-left-color: var(--accent); }
.elementor .ae-scheda > .elementor-container > .elementor-column:nth-child(4n+3) > .elementor-widget-wrap { border-left-color: var(--pink); }
.elementor .ae-scheda > .elementor-container > .elementor-column:nth-child(4n+4) > .elementor-widget-wrap { border-left-color: var(--green); }
.elementor .ae-scheda-full { grid-column: 1 / -1; }
.entry-content .ae-scheda-label .elementor-heading-title { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.ae-scheda-value, .ae-scheda-value p { margin: 0; font-weight: 600; font-size: 1.05rem; }
@media (max-width: 600px) { .elementor .ae-scheda > .elementor-container { grid-template-columns: 1fr; } }

/* Persone */
.elementor .ae-team > .elementor-container > .elementor-column > .elementor-widget-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; margin: var(--space-3) 0; }
.ae-team .elementor-image-box-wrapper { text-align: center; padding: 24px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; transition: transform .3s var(--ease); }
.ae-team .elementor-image-box-wrapper:hover { transform: translateY(-6px); }
.ae-team .elementor-image-box-img { margin: 0 auto 14px !important; width: auto !important; display: block; }
.elementor .ae-team .elementor-image-box-img img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--accent); }
.elementor .ae-team .elementor-widget:nth-child(4n+2) img { box-shadow: 0 0 0 4px var(--pink); }
.elementor .ae-team .elementor-widget:nth-child(4n+3) img { box-shadow: 0 0 0 4px var(--cyan); }
.elementor .ae-team .elementor-widget:nth-child(4n+4) img { box-shadow: 0 0 0 4px var(--green); }
.entry-content .ae-team .elementor-image-box-title { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0 0 2px; color: var(--ink); letter-spacing: 0; line-height: 1.3; }
.ae-team .elementor-image-box-description { margin: 0; font-size: .9rem; color: var(--muted); }

/* Pagina corso: testo a sinistra, locandina a destra */
.elementor .ae-course > .elementor-container { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.elementor .ae-course > .elementor-container > .elementor-column { width: auto; }
.elementor .ae-course > .elementor-container > .entry-content { grid-column: 1; grid-row: 1; max-width: none; }
.elementor .ae-poster { grid-column: 2; grid-row: 1; position: sticky; top: 100px; margin-top: calc(-1 * var(--space-6)); z-index: 3; }
.elementor .ae-poster > .elementor-widget-wrap { padding: 14px; gap: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.elementor .ae-poster img { display: block; width: 100%; border-radius: 14px; }
.elementor .ae-poster .ae-btn { margin: 0; }
@media (max-width: 980px) {
	.elementor .ae-course > .elementor-container { grid-template-columns: 1fr; gap: var(--space-4); }
	.elementor .ae-course > .elementor-container > .entry-content, .elementor .ae-poster { grid-column: 1; grid-row: auto; position: static; margin-top: 0; }
	.elementor .ae-poster { max-width: 440px; }
}

/* ---------- Piè di pagina ---------- */
.elementor-section.ae-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .8); padding: var(--space-6) 0 var(--space-3); font-size: .98rem; overflow: hidden; isolation: isolate; }
.ae-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--accent), var(--pink), var(--cyan), var(--green)); }
.ae-footer::after { content: ""; position: absolute; right: -180px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(1, 114, 193, .5), transparent 65%); z-index: -1; }
.ae-footer a { color: #fff; }
.elementor .ae-footer-grid > .elementor-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--space-4); }
.elementor .ae-footer-grid > .elementor-container > .elementor-column { width: auto; }
.ae-footer-name .elementor-heading-title { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: #fff; margin: 0 0 8px; letter-spacing: -.02em; }
.ae-footer-title .elementor-heading-title { font-family: var(--font-display); font-weight: 800; color: #fff; margin: 0 0 14px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.ae-footer .elementor-widget-text-editor { color: rgba(255, 255, 255, .8); }
.ae-footer-text p { margin-bottom: var(--space-2); }
.ae-footer-address, .ae-footer-address p { line-height: 1.8; }
.ae-footer-links .elementor-icon-list-items { display: grid; gap: 10px; }
.ae-footer-links .elementor-icon-list-item { padding: 0 !important; margin: 0 !important; }
.ae-footer-links .elementor-icon-list-item a { color: #fff; text-decoration: none; opacity: .85; transition: opacity .2s, padding-left .2s; }
.ae-footer-links .elementor-icon-list-item a:hover { opacity: 1; padding-left: 4px; color: var(--accent); }
.ae-footer-links .elementor-icon-list-text { color: inherit; }
.ae-footer-links .elementor-icon-list-icon { display: none; }
.ae-footer-social .elementor-social-icons-wrapper { display: flex; gap: 12px; justify-content: flex-start; }
.elementor .ae-footer-social .elementor-social-icon { width: 46px; height: 46px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; padding: 0; margin: 0 !important; transition: background-color .2s, transform .2s var(--ease); }
.elementor .ae-footer-social .elementor-social-icon:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.ae-footer-social .elementor-social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.ae-footer-social .elementor-social-icon i { color: inherit; }
.elementor .ae-footer-legal > .elementor-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.elementor .ae-footer-legal > .elementor-container > .elementor-column { width: auto; }
.ae-footer-legal .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ae-footer-legal .elementor-icon-list-item a { text-decoration: underline; opacity: .9; }
@media (max-width: 900px) { .elementor .ae-footer-grid > .elementor-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .elementor .ae-footer-grid > .elementor-container { grid-template-columns: 1fr; } }

/* ---------- Intestazione dentro Elementor: resta fissa in alto come prima ---------- */
.assieme-hf, .assieme-hf > .elementor, .assieme-hf .elementor-section-wrap, .assieme-hf .elementor-section.ae-header-sec, .assieme-hf .ae-header-sec > .elementor-container, .assieme-hf .ae-header-sec .elementor-column, .assieme-hf .ae-header-sec .elementor-widget-wrap, .assieme-hf .elementor-widget-assieme-intestazione, .assieme-hf .elementor-widget-assieme-intestazione > .elementor-widget-container { display: contents; }

/* ---------- Ritocchi ---------- */
.ae .elementor-widget.ae-hero-lead { width: 100%; }
.assieme-hf .site-logo__img { height: 54px; width: auto; max-width: none; }
.assieme-hf .is-scrolled .site-logo__img { height: 44px; }
@media (max-width: 480px) { .assieme-hf .site-logo__img { height: 42px; } }
.elementor .ae-pillar-btn .elementor-button { display: flex; justify-content: flex-start; text-align: left; width: auto; }
.elementor-section.ae-marquee-sec { overflow-x: clip; }
.ae-footer-social .elementor-widget-container { text-align: left; }
.elementor .ae-footer-social .elementor-social-icons-wrapper.elementor-grid { display: flex; gap: 12px; justify-content: flex-start; }
.elementor .ae-footer-social .elementor-grid-item { display: block; }
