/* SICILIAinMINI — homepage, versione "Nitida" (v9). Solo presentazione: i contenuti arrivano dal Superadmin. */
.sim-home{font-family:Arial,Helvetica,sans-serif;color:#171a1d;position:relative;isolation:isolate;background:transparent}
.sim-home h1,.sim-home h2,.sim-home h3{text-transform:none}

/* ---- Sfondo generale (modalità e inquadratura scelte nel Superadmin) ---- */
.sim-home-background{position:fixed;z-index:-1;inset:0;pointer-events:none;background:#f5f4f0;overflow:hidden}
.sim-home-background-picture{position:absolute;inset:0;display:block}
.sim-home-background-picture:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,var(--background-shade,35%))}
.sim-home-background-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--background-desktop-x,50%) var(--background-desktop-y,50%)}
.sim-home-background-white .sim-home-background{background:#fcfbf8}
.sim-home-background-black .sim-home-background{background:#202326}
.sim-home-background-gray .sim-home-background{background:#e9edef}
.sim-home-background-gradient .sim-home-background{background:radial-gradient(ellipse at 15% 15%,#fff 0,transparent 60%),linear-gradient(130deg,#f8f3eb,#e3edf0 55%,#f1e7dd)}
.home-preview-banner{background:#fff0ad;color:#111;padding:14px;margin:0;text-align:center;font-size:13px}

/* ---- Pulsanti ---- */
.sim-home-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:52px;max-width:100%;padding:13px 24px;border-radius:10px;font-size:15px;font-weight:700;line-height:1.3;transition:background .2s;overflow-wrap:anywhere}
.sim-home-button-primary{background:#d7192d;color:#fff;border:2px solid #d7192d}
.sim-home-button-primary:hover{background:#b81022;border-color:#b81022}
.sim-home-button-glass{background:transparent;border:2px solid #fff;color:#fff}
.sim-home-button-glass:hover{background:rgba(255,255,255,.14)}
.sim-home-button:focus-visible,.sim-home-card:focus-visible{outline:3px solid #d7192d;outline-offset:4px}
.sim-home-band .sim-home-button:focus-visible{outline-color:#fff}

/* ---- Copertina: foto a tutto schermo, testo bianco ---- */
.sim-home-hero{min-height:620px;position:relative;isolation:isolate;display:flex;align-items:center;background:#15191c;color:#fff;overflow:hidden}
.sim-home-hero-media{position:absolute;inset:0;z-index:-3;display:block}
.sim-home-hero-image{width:100%;height:100%;object-fit:cover;object-position:var(--hero-desktop-x,50%) var(--hero-desktop-y,50%)}
/* Oscuramento scelto nel Superadmin + sfumatura a sinistra per la leggibilità del testo. */
.sim-home-hero:before{content:"";position:absolute;inset:0;z-index:-2;background:rgba(0,0,0,var(--hero-shade,35%))}
.sim-home-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,8,9,.78) 0%,rgba(8,8,9,.5) 45%,rgba(8,8,9,0) 85%)}
.sim-home-hero.is-missing{background:#1c2024}
.sim-home-hero.is-missing:before,.sim-home-hero.is-missing:after{display:none}
.sim-home-hero-placeholder{display:none;position:absolute;right:28px;bottom:18px;color:#aab0b5;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.sim-home-hero.is-missing .sim-home-hero-placeholder{display:block}
.sim-home-hero-inner{position:relative;z-index:1;width:min(1200px,calc(100% - 80px));margin:0 auto;padding:96px 0}
.sim-home-hero.has-featured-event .sim-home-hero-inner{padding-bottom:128px}
.sim-home-intro{max-width:700px;color:#fff}
.sim-home-eyebrow{font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin:0 0 20px;color:#fff;overflow-wrap:anywhere}
.sim-home-intro h1{font-size:clamp(42px,5.6vw,76px);line-height:.98;letter-spacing:-.045em;margin:0 0 24px;font-weight:900;color:#fff;overflow-wrap:anywhere}
.sim-home-lead{max-width:540px;font-size:clamp(17px,1.4vw,19px);line-height:1.6;margin:0 0 36px;color:#f1f2f3;overflow-wrap:anywhere}
.sim-home-actions{display:flex;flex-wrap:wrap;gap:12px}

/* ---- Prossimo raduno: striscia bianca che esce dalla copertina ---- */
.sim-home-featured{position:relative;z-index:2;width:min(1200px,calc(100% - 80px));margin:-64px auto 0;padding:20px 28px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"tag btn" "body btn";column-gap:28px;row-gap:6px;align-items:center;background:#fff;border:0;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.16);min-width:0}
.sim-home-tag{grid-area:tag;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#c4152a;margin:0}
.sim-home-featured-body{grid-area:body;display:flex;align-items:center;gap:20px;min-width:0}
.sim-home-featured-body img{order:-1;flex:none;width:76px;height:114px;object-fit:cover;border-radius:6px;margin:0}
.sim-home-featured h2{font-size:clamp(24px,2.6vw,30px);line-height:1.1;letter-spacing:-.03em;margin:0 0 6px;overflow-wrap:anywhere}
.sim-home-featured p{color:#4d555b;font-size:15px;line-height:1.5;margin:2px 0 0}
.sim-home-featured>.sim-home-button{grid-area:btn}

/* ---- Sezioni: righe di schede nell'ordine scelto, RIMU a tutta larghezza ---- */
.sim-home-panels{width:min(1200px,calc(100% - 80px));margin:72px auto 0;padding-bottom:64px;display:flex;flex-direction:column;gap:24px}
.sim-home-cards{display:grid;gap:24px;grid-template-columns:repeat(4,minmax(0,1fr))}
.sim-home-cards[data-cols="1"]{grid-template-columns:minmax(0,1fr)}
.sim-home-cards[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.sim-home-cards[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.sim-home-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e3e5e6;border-radius:18px;overflow:hidden;color:#17212b;box-shadow:0 12px 36px rgba(0,0,0,.08);transition:box-shadow .2s,transform .2s}
.sim-home-card:hover{box-shadow:0 16px 40px rgba(24,35,43,.15);transform:translateY(-2px)}
.sim-home-card-photo{position:relative;display:block;aspect-ratio:4/3;background:#eceeef;overflow:hidden}
.sim-home-cards[data-cols="1"] .sim-home-card-photo,.sim-home-cards[data-cols="2"] .sim-home-card-photo{aspect-ratio:16/10}
.sim-home-card-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.sim-home-card:hover .sim-home-card-image{transform:scale(1.03)}
.sim-home-card-copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px;min-width:0}
.sim-home-card-num{font-size:12px;font-weight:700;letter-spacing:.12em;color:#c4152a}
.sim-home-card h2{font-size:clamp(22px,2vw,26px);line-height:1.1;letter-spacing:-.03em;margin:0;overflow-wrap:anywhere}
.sim-home-card p{font-size:15px;line-height:1.55;margin:0;color:#4d555b;overflow-wrap:anywhere}
.sim-home-card-link{margin-top:auto;padding-top:6px;font-size:14px;font-weight:700;color:#c4152a}
/* Senza foto (o foto non raggiungibile) la scheda diventa tipografica. */
.sim-home-card-text .sim-home-card-photo{background:#15191c}
.sim-home-card-text .sim-home-card-photo:before{content:attr(data-num);position:absolute;left:24px;bottom:12px;font-size:96px;line-height:1;font-weight:900;letter-spacing:-.06em;color:#d7192d}
.sim-home-card-text .sim-home-card-num{display:none}

/* ---- RIMU (contenuti e foto dal Superadmin) ---- */
.sim-home-rimu{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:52px;align-items:center;padding:50px;background:#fff;border:1px solid #e0e2e4;border-radius:18px;box-shadow:0 12px 36px rgba(0,0,0,.08);color:#20272b}
.sim-home-rimu-mark{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;border-right:1px solid #d6d9dc;padding-right:35px;font-size:clamp(48px,6vw,80px);font-weight:800;letter-spacing:-5px;color:#383f44}
.sim-home-rimu-rule{height:3px;width:42px;background:#d7192d;margin-top:24px}
.sim-home-rimu-eyebrow{font-size:11px;font-weight:bold;letter-spacing:.15em;text-transform:none;margin:0 0 15px;color:#525a60}
.sim-home-rimu h2{font-size:clamp(27px,3vw,37px);line-height:1.08;letter-spacing:-.035em;margin:0 0 22px;overflow-wrap:anywhere}
.sim-home-rimu-text{font-size:14px;line-height:1.85;color:#50595f;margin:0 0 28px;overflow-wrap:anywhere}
.sim-home-rimu-logo{display:block;max-width:100%;width:min(270px,100%);max-height:190px;object-fit:contain;object-position:left center;letter-spacing:normal}
.sim-home-rimu-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px 25px}
.sim-home-rimu-official{font-size:12px;font-weight:bold;line-height:1.5;border-bottom:1px solid #bcc3c8;padding:8px 0}
.sim-home-rimu.has-photo{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);overflow:hidden}
.sim-home-rimu-photo{grid-column:1/-1;order:0;margin:-50px -50px 0;height:300px;overflow:hidden;background:#e9edef}
.sim-home-rimu-photo img{width:100%;height:100%;display:block;object-fit:cover}
.sim-home-rimu-photo[hidden],.sim-home-rimu-photo img[hidden],.sim-home-background-picture img[hidden],.sim-home-hero-image[hidden],.sim-home-card-image[hidden]{display:none}
.sim-home-rimu.sim-home-rimu-reverse{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)}
.sim-home-rimu-reverse .sim-home-rimu-mark{order:2;border-right:0;border-left:1px solid #d6d9dc;padding-right:0;padding-left:35px}
.sim-home-rimu-reverse .sim-home-rimu-copy{order:1}

/* ---- Fascia nera "Fai parte del Club" ---- */
.sim-home-band{background:#101113;color:#fff}
.sim-home-band-inner{width:min(1200px,calc(100% - 80px));margin:0 auto;padding:72px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:32px 56px}
.sim-home-band-copy{flex:1 1 420px;min-width:0}
.sim-home-band-eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#ff6b78;margin:0 0 14px}
.sim-home-band h2{font-size:clamp(32px,3.6vw,44px);line-height:1.05;letter-spacing:-.04em;margin:0 0 16px;color:#fff;overflow-wrap:anywhere}
.sim-home-band-text{max-width:520px;font-size:17px;line-height:1.6;color:#d6d9dc;margin:0 0 28px}
.sim-home-band-actions{display:flex;flex-wrap:wrap;gap:12px}
.sim-home-band-badge{display:flex;align-items:center;gap:20px;max-width:340px}
.sim-home-band-badge img{flex:none;width:128px;height:128px;object-fit:contain}
.sim-home-band-badge p{margin:0;font-size:15px;line-height:1.5;color:#d6d9dc}

/* ---- Tablet ---- */
@media(max-width:1000px){
.sim-home-cards,.sim-home-cards[data-cols="3"],.sim-home-cards[data-cols="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.sim-home-rimu{padding:38px;gap:35px}
.sim-home-rimu-photo{margin:-38px -38px 0}
.sim-home-hero-inner,.sim-home-featured,.sim-home-panels,.sim-home-band-inner{width:calc(100% - 48px)}
}

/* ---- Smartphone ---- */
@media(max-width:700px){
.sim-home-background-picture img{object-position:var(--background-mobile-x,50%) var(--background-mobile-y,50%)}
.sim-home-hero{min-height:0}
.sim-home-hero-image{object-position:var(--hero-mobile-x,50%) var(--hero-mobile-y,50%)}
.sim-home-hero:after{background:linear-gradient(180deg,rgba(8,8,9,.5) 0%,rgba(8,8,9,.8) 100%)}
.sim-home-hero-inner{width:calc(100% - 32px);padding:72px 0 88px}
.sim-home-hero.has-featured-event .sim-home-hero-inner{padding-bottom:104px}
.sim-home-intro h1{font-size:clamp(38px,11vw,52px)}
.sim-home-actions .sim-home-button{flex:1 1 200px}
.sim-home-featured{width:calc(100% - 32px);margin-top:-48px;padding:20px;grid-template-columns:minmax(0,1fr);grid-template-areas:"tag" "body" "btn";row-gap:12px}
.sim-home-featured>.sim-home-button{justify-self:stretch}
.sim-home-panels{width:calc(100% - 32px);margin-top:40px;padding-bottom:48px}
.sim-home-cards,.sim-home-cards[data-cols]{grid-template-columns:minmax(0,1fr)}
.sim-home-card-photo,.sim-home-cards[data-cols] .sim-home-card-photo{aspect-ratio:16/10}
.sim-home-card-text .sim-home-card-photo:before{font-size:80px;bottom:8px}
.sim-home-rimu,.sim-home-rimu.has-photo,.sim-home-rimu.sim-home-rimu-reverse{grid-template-columns:minmax(0,1fr);gap:27px;padding:31px 25px}
.sim-home-rimu-mark,.sim-home-rimu-reverse .sim-home-rimu-mark{order:0;border-right:0;border-left:0;border-bottom:1px solid #d6d9dc;padding:0 0 24px;font-size:48px;letter-spacing:-3px;flex-direction:row;align-items:center;gap:20px}
.sim-home-rimu-reverse .sim-home-rimu-copy{order:0}
.sim-home-rimu-rule{margin:0;flex-shrink:0}
.sim-home-rimu-logo{max-height:130px;width:min(200px,100%)}
.sim-home-rimu h2{font-size:29px}
.sim-home-rimu-actions{align-items:flex-start;flex-direction:column;gap:14px}
.sim-home-rimu-photo{margin:-31px -25px 0;height:230px}
.sim-home-band-inner{width:calc(100% - 32px);padding:56px 0}
.sim-home-band-actions .sim-home-button{flex:1 1 200px}
.sim-home-band-badge img{width:96px;height:96px}
}

/* Sfondo fisso: sui dispositivi touch usa un'immagine "sticky" più leggera. */
@media(hover:none) and (pointer:coarse){
.sim-home-background{position:absolute;overflow:visible}
.sim-home-background-picture{position:sticky;inset:auto;top:0;height:100vh;height:100svh}
}
@media(prefers-reduced-motion:reduce){
.sim-home-background{position:absolute;overflow:hidden}
.sim-home-background-picture{position:absolute;inset:0;height:100%}
.sim-home-button,.sim-home-card,.sim-home-card-image{transition:none!important}
.sim-home-card:hover,.sim-home-card:hover .sim-home-card-image{transform:none}
}
