/* ==========================================================
   CORE.CSS — HUB ENGINE V8
   Reset moderno + tipografia + layout base.
   Nessuna estetica: tutto delegato ai temi.
========================================================== */


/* ==========================================================
   RESET
========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


/* ==========================================================
   ROOT — fallback neutro (usato solo se manca un tema)
========================================================== */
:root {
    --bg: #111;
    --panel: rgba(255,255,255,0.06);
    --panel-strong: rgba(255,255,255,0.16);

    --text: #f2f2f2;
    --accent: #ffffff;
    --border: rgba(255,255,255,0.25);

    --glow: rgba(255,255,255,0.28);
    --shadow-soft: rgba(0,0,0,0.15);
    --shadow-hard: rgba(0,0,0,0.28);

    --link: var(--accent);

    /* z-layers globali */
    --z-nav: 50;
    --z-popup: 100;
    --z-theme-switcher: 120;
    --z-floating-sigil: 130;
}


/* ==========================================================
   BODY BASE
========================================================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;

    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;
}


/* ==========================================================
   FORM ELEMENTS
========================================================== */
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}


/* ==========================================================
   WRAPPER
========================================================== */
.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}


/* ==========================================================
   TYPOGRAPHY
========================================================== */
h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: .5px;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

p {
    margin-bottom: 12px;
    opacity: .92;
}


/* ==========================================================
   LINKS
========================================================== */
a {
    color: var(--accent);
    text-decoration: none;
    transition: .25s ease;
}

a:hover {
    filter: brightness(1.2);
}


/* ==========================================================
   GRID SYSTEM
========================================================== */
.card-grid {
    display: grid;
    gap: 22px;
}

@media (min-width: 720px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}


/* ==========================================================
   HERO BASE
========================================================== */
.hero {
    text-align: center;
    padding: 34px 0 45px;
}

.hero .subtitle {
    opacity: .85;
    font-size: 1.15rem;
}


/* ==========================================================
   UTILITIES
========================================================== */
.center { text-align: center; }

.mt20 { margin-top: 20px; }
.mt40 { margin-top: 40px; }

.mb20 { margin-bottom: 20px; }
.mb40 { margin-bottom: 40px; }

.hidden { display: none !important; }


/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 820px) {
    .wrap {
        padding: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
}


/* ==========================================================
   FOOTER BASE
========================================================== */
.mirc-footer {
    padding: 40px 20px;
    text-align: center;
}

.mirc-footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* icone footer — base neutra, sovrascritta dai temi */
.mirc-footer-social a svg {
    width: 26px;
    height: 26px;
    fill: var(--text);
    transition: .25s ease;
}

.mirc-footer-social a:hover svg {
    transform: scale(1.15);
}

.mirc-footer-text,
.mirc-footer-sub {
    color: var(--text);
    opacity: .85;
    font-size: .85rem;
}

.mirc-footer-sub a {
    color: var(--accent);
}
