/* ================= GENERALE ================= */

@font-face {
    font-family: "OldEnglish";
    src: local("Old English Text MT");
}


* {
    box-sizing: border-box;
    font-family: "OldEnglish", serif;
    background-color: #eeeeee;
}

body {
    margin: 0;
    background: #ffffff;
    color: #ffffff;
}

/* ================= HEADER ================= */
.site-header {
    background: #dfefff;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 0 0 20px 20px;
}


.site-header h1 {
    font-size: 42px;
    margin: 0 auto;
}


.logo {
    width: 60px;
    height: 60px;
    background: #ccc;
    border-radius: 50%;
}

/* ================= MAPPA SITO ================= */
.site-map {
    padding: 30px;
}

.top-level {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ================= BOX ================= */
.box {
    min-height: auto;   /* aumenta l’altezza */
    display: flex;
    flex-direction: column;
    /*min-height: 580px;*/
    flex: 1;
    border-radius: 14px;
    padding: 15px;
    border: 2px solid #ffffff;
}

/* colori settori */
.progetto { background: #90bffc; }
.azienda  { background: #90bffc; }
.moduli   { background: #90bffc; }
.jagercraft   { background: #90bffc; }
.fornitori {background: #90bffc;}
.contatti {background: #90bffc;}
/* Progetto: item uno sotto l'altro */
.progetto .item {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Moduli: tutto in colonna */
.module-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.jagercraft {
    margin-top: 40px;
}
.fornitori {
    margin-top: 40px;
}
.contatti {
    margin-top: 40px;
}

/* ================= TITOLI ================= */
.box-title {
    width: 100%;
    padding: 12px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #cfe3ff;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.box-title::after {
    content: "▼";
    float: right;
    transition: transform 0.2s ease;
}

.box.active .box-title::after {
    transform: rotate(180deg);
}


/* hover titoli */
.progetto .box-title:hover { background: #90bffc; color: #fff; }
.azienda .box-title:hover  { background: #90bffc; color: #fff; }
.moduli .box-title:hover   { background: #90bffc; color: #fff; }
.jagercraft .box-title:hover   { background: #90bffc; color: #fff; }
.fornitori .box-title:hover {background: #90bffc; color: #fff;}
.contatti .box-title:hover {background: #90bffc; color: #fff;}




/* ================= CONTENUTO A TENDINA ================= */
.box-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.box.active .box-content {
    max-height: 1000px;
}


/* ================= BOTTONI ================= */
.item {
    display: inline-block;
    padding: 8px 14px;
    margin: 6px;
    border-radius: 8px;
    border: 1px solid #cfe3ff;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.item:hover {
    transform: translateY(-1px);
    background: #E5E7EB;
}

/* bottoni ovali */
.oval {
    padding: 6px 16px;
    margin: 6px;
    border-radius: 999px;
    border: 1px solid #cfe3ff;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.oval:hover {
    transform: scale(1.05);
    background: #cfe3ff;
}

/* ================= SOTTOLIVELLI ================= */
.sub-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= MODULI ================= */
.grid-moduli {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.module-group {
    min-width: 150px;
}


/*sfondi*/

.progetto.active .box-content {
    background: #90bffc;
}

.progetto.active .item,
.progetto.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}


.azienda.active .box-content {
    background: #90bffc;
}

.azienda.active .item,
.azienda.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}


.moduli.active .box-content {
    background: #90bffc;
}

.moduli.active .item,
.moduli.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}

.jagercraft.active .box-content {
    background: #90bffc;
}

.jagercraft.active .item,
.jagercraft.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}

.contatti.active .box-content {
    background: #90bffc;
}

.contatti.active .item,
.contatti.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}


.fornitori.active .box-content {
    background: #90bffc;
}

.fornitori.active .item,
.fornitori.active .oval {
    background: #90bffc;
    color: #ffffff;
    border-color: #ffffff;
}

/* ================= SPLASH SCREEN ================= */
#splash-screen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease;
}

/* animazione uscita */
#splash-screen.splash-hide {
    opacity: 0;
    pointer-events: none;
}

/* scritta "Home page" */
.splash-home {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 20px;
    color: #000;
}

/* logo centrale */
.splash-logo {
    width: 260px;
    margin-bottom: 30px;
}

/* motto */
.splash-motto {
    font-family: "Old English Text MT", serif;
    font-size: 42px;
    margin-bottom: 40px;
}

/* bottone entra */
#splash-enter {
    padding: 15px 60px;
    font-size: 22px;
    background: rgb(255, 166, 0);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#splash-enter:hover {
    background: darkorange;
}


/* ================= TESTI NON TITOLI ================= */
button,
.item,
.oval,
#splash-enter,
.box-content,
p {
    font-family: "Times New Roman", Times, serif;
}

/* ================= TITOLI ================= */
h1,
.box-title,
.splash-motto {
    font-family: "OldEnglish", serif;
}