/* Tutte le regole sono circoscritte al banner SNCI. */
#corsi_2027 > .c27-inner {
    --c27-gold: #ffbf35;
    --c27-red: #b51313;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(26px, 3vw, 58px) 0 clamp(28px, 4vw, 72px);
    background: radial-gradient(ellipse at 50% 0%, #253344 0%, #101924 42%, #0b0d13 85%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    line-height: 1.2;
}
#corsi_2027 .c27-inner *, #corsi_2027 .c27-inner *::before, #corsi_2027 .c27-inner *::after { box-sizing: border-box; }
#corsi_2027 .c27-decor {
    position: absolute; top: 0; width: 24%; height: 53%; z-index: -1;
    background-repeat: no-repeat; background-size: cover; pointer-events: none;
}
#corsi_2027 .c27-decor-left {
    left: 0; background-image: linear-gradient(to right, transparent 45%, #101924 100%), linear-gradient(to top, #101924, transparent 35%), url('img/corsi2027/ciak.jpg'); background-position: left center;
    mask-image: linear-gradient(to bottom, #000 75%, transparent);
}
#corsi_2027 .c27-decor-right {
    right: 0; background-image: linear-gradient(to left, transparent 45%, #101924 100%), linear-gradient(to top, #101924, transparent 35%), url('img/corsi2027/faro.jpg'); background-position: right center;
    mask-image: linear-gradient(to bottom, #000 75%, transparent);
}
#corsi_2027 .c27-heading { position: relative; margin: 0 auto clamp(22px, 2.4vw, 42px); padding: 0 16px; }
#corsi_2027 .c27-title { display: flex; align-items: center; justify-content: center; gap: .19em; margin: 0; font-weight: 700; font-size: clamp(36px, 6.1vw, 112px); line-height: 1.04; text-transform: uppercase; letter-spacing: -.025em; text-shadow: 0 4px 14px #0009; color: #fff; }
#corsi_2027 .c27-title-number { color: var(--c27-gold); font-size: 1.48em; line-height: .95; }
#corsi_2027 .c27-subtitle { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 30px); margin: 12px auto 22px; font-size: clamp(13px, 1.65vw, 28px); font-weight: 400; text-transform: uppercase; letter-spacing: .19em; color: #e4e5e8; }
#corsi_2027 .c27-subtitle::before, #corsi_2027 .c27-subtitle::after { content: ''; width: clamp(18px, 4vw, 75px); height: 2px; background: #c1c3c7; flex: 0 0 auto; }
#corsi_2027 .c27-date { display: inline-block; position: relative; padding: 12px clamp(25px, 5vw, 90px) 17px; transform: skewX(-12deg) rotate(-2deg); background: linear-gradient(110deg, #c51b1c, #8b090b); box-shadow: 0 8px 25px #0008, inset 0 1px 0 #ff7777; border-top: 1px solid #e74242; border-bottom: 1px solid #e74242; }
#corsi_2027 .c27-date-text { display: block; transform: skewX(12deg); font-size: clamp(19px, 3vw, 48px); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
#corsi_2027 .c27-date-month { display: block; color: var(--c27-gold); font-size: clamp(36px, 6vw, 100px); font-weight: 700; line-height: 1.02; letter-spacing: -.015em; }
#corsi_2027 .c27-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; width: 100%; margin: 0 auto; padding: 0; }
#corsi_2027 .c27-course { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; margin: 0; padding: 0 3px 8px; }
#corsi_2027 .c27-photo { position: relative; width: calc(100% + 14%); aspect-ratio: .77; overflow: hidden; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); background: #20242c; }
#corsi_2027 .c27-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 44%, #10121955 69%, #0b0d13 100%); pointer-events: none; }
#corsi_2027 .c27-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s ease; }
#corsi_2027 .c27-course:first-child .c27-photo { clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
#corsi_2027 .c27-course-body { position: relative; z-index: 1; margin-top: -20%; width: 100%; display: flex; flex-direction: column; align-items: center; }
#corsi_2027 .c27-icon { width: clamp(30px, 4vw, 64px); height: clamp(30px, 4vw, 64px); display: block; margin: 0 auto 10px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px #0008); }
#corsi_2027 .c27-name { margin: 0; font-size: clamp(15px, 2.1vw, 37px); line-height: 1.15; font-weight: 600; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 2px 5px #000; }
#corsi_2027 .c27-course-body::after { content: ''; width: 38%; max-width: 85px; height: 3px; background: var(--c27-gold); margin-top: 13px; transition: width .2s ease; }
#corsi_2027 a.c27-course[href]:hover .c27-photo img, #corsi_2027 a.c27-course[href]:focus-visible .c27-photo img { transform: scale(1.06); }
#corsi_2027 a.c27-course[href]:hover .c27-course-body::after, #corsi_2027 a.c27-course[href]:focus-visible .c27-course-body::after { width: 55%; }
#corsi_2027 a.c27-course[href]:focus-visible { outline: 2px solid var(--c27-gold); outline-offset: -3px; }
@media (min-width: 1600px) { #corsi_2027 .c27-grid { max-width: 1700px; } }
@media (max-width: 991px) {
    #corsi_2027 .c27-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; padding: 0 14px; }
    #corsi_2027 .c27-name { font-size: clamp(17px, 3vw, 29px); }
    #corsi_2027 .c27-photo { width: 108%; aspect-ratio: 1.03; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
    #corsi_2027 .c27-course:first-child .c27-photo { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
    #corsi_2027 .c27-course-body { margin-top: -15%; }
    #corsi_2027 .c27-decor { height: 35%; width: 26%; opacity: .7; }
}
@media (max-width: 575px) {
    #corsi_2027 .c27-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 10px; row-gap: 20px; }
    #corsi_2027 .c27-title { font-size: clamp(32px, 8.5vw, 48px); }
    #corsi_2027 .c27-subtitle { font-size: 12px; letter-spacing: .09em; gap: 8px; margin: 10px 0 17px; }
    #corsi_2027 .c27-subtitle::before, #corsi_2027 .c27-subtitle::after { width: 10px; }
    #corsi_2027 .c27-date { padding: 9px 26px 13px; }
    #corsi_2027 .c27-date-month { font-size: clamp(34px, 9vw, 49px); }
    #corsi_2027 .c27-decor { opacity: .35; height: 24%; }
    #corsi_2027 .c27-name { font-size: clamp(16px, 4.1vw, 23px); }
    #corsi_2027 .c27-photo { aspect-ratio: .98; }
}
@media (prefers-reduced-motion: reduce) { #corsi_2027 .c27-photo img, #corsi_2027 .c27-course-body::after { transition: none; } }
