/* ============= Font ShelleyAndante BT ============= */
/* Assicurati di avere il file .ttf o .woff nella cartella fonts/ */
@font-face {
    font-family: 'ShelleyAndanteBT';
    src: url('fonts/ShelleyAndanteBT-Regular.woff2') format('woff2'),
         url('fonts/ShelleyAndanteBT-Regular.woff') format('woff'),
         url('fonts/ShelleyAndanteBT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* aiuta Safari a caricare correttamente il font */
}

/* Classe per usare il font solo nel logo/titoli */
.shelley-logo {
    font-family: 'ShelleyAndanteBT', sans-serif;
    font-size: 1.1em; /* 10% più grande */
    line-height: 1;
    display: inline-block;
    vertical-align: baseline;
    color: inherit;
}

/* ================= Reset globale ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
}

/* ================= Barra blu top ================= */
.top-bar {
    background-color: #0a3c64;
    color: #fff;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar h1.site-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar h1.site-title .title-text {
    position: relative;
    padding-bottom: 5px;
}

.top-bar h1.site-title .title-text::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f39c12;
    margin-top: 5px;
    border-radius: 2px;
}

/* ================= Switch lingue ================= */
.lang-switch,
.lang-switch-responsive {
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin: 15px 0;
}

.lang-switch a,
.lang-switch-responsive a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    cursor: pointer;
}

.lang-switch-responsive a.active,
.menu ul li a.active {
    color: #f39c12;
    font-weight: bold;
}

.lang-switch a:hover,
.lang-switch-responsive a:hover {
    background-color: #e8f3ff;
    color: #f39c12;
}

@media (max-width: 480px) {
    .lang-switch-responsive a {
        padding: 6px 10px;
        margin: 3px;
        font-size: 0.9rem;
    }
}

/* ================= Contenitore principale ================= */
.container {
    display: flex;
    min-height: calc(100vh - 130px);
}

/* ---------------- Colonna sinistra ---------------- */
.left-column {
    background-color: #d6eaf8;
    width: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-column h3 {
    margin-bottom: 10px;
    color: #222;
}

.left-column ul {
    list-style: none;
    padding: 0;
}

.left-column ul li {
    margin-bottom: 8px;
}

.left-column a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

.left-column a:hover {
    color: #f39c12;
}

/* ---------------- Colonna principale ---------------- */
.right-column {
    flex: 1;
    padding: 25px 20px;
}

/* ================= Contenitori principali ================= */
.content-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-box h2 {
    margin-bottom: 15px;
    color: #0a3c64;
}

/* ================= Mini-box / servizi ================= */
.grid-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.mini-box {
    background-color: #d6eaf8;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.2s;
}

.mini-box:hover {
    transform: translateY(-5px);
}

.mini-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #f39c12;
    margin-bottom: 8px;
}

.mini-box h3 .icon-wrapper img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mini-box p {
    font-size: 0.9rem;
    color: #0a3c64;
    margin-top: 10px;
    line-height: 1.5;
}

/* ================= Icon-list ================= */
.icon-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #003366;
    font-size: 1rem;
}

.icon-list li img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ================= Inner-box ================= */
.inner-box {
    background-color: #d6eaf8;
    width: 70%;
    max-width: 650px;
    min-width: 300px;
    min-height: 120px;
    margin: 0 auto 25px auto;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ================= Minibox statica ================= */
.mini-box-static {
    background-color: #d6eaf8;
    width: 40%;
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-box-static h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ================= Icon-row ================= */
.icon-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.icon-row img {
    width: 48px;
    height: 48px;
    max-width: 15%;
    object-fit: contain;
}

/* ================= CTA box ================= */
.cta-box {
    background-color: #0a3c64;
    color: #fff;
    text-align: center;
    width: 80%;
    margin: 0 auto 25px auto;
    padding: 20px;
    border-radius: 10px;
}

.cta-box .btn {
    display: inline-block;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 6px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.cta-box .btn:hover {
    background-color: #ffb84d;
}

.cta-box .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* ================= Box finale ================= */
.final-box {
    grid-column: 2 / span 1;
    border: 2px solid #f39c12;
    background-color: #fdebd0;
}

/* ================= Closing box ================= */
.closing-box {
    background-color: #e6f2fa;
    text-align: center;
    padding: 20px;
    margin: 40px auto;
    font-size: 1.2em;
    color: #0a3c64;
    border-radius: 12px;
    font-style: italic;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ================= Bottom bar ================= */
.bottom-bar {
    background-color: #0a3c64;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
}

.bottom-bar a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.bottom-bar a:hover {
    color: #f39c12;
}

/* ================= Immagini negli attestati ================= */
.content-box .grid-boxes .mini-box img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    margin: 10px auto 0 auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .content-box .grid-boxes .mini-box img {
        max-height: 150px;
    }
}

/* ================= Responsività griglia e box ================= */
@media screen and (max-width: 1024px) {
    .grid-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .grid-boxes {
        grid-template-columns: 1fr;
    }
    .mini-box-static {
        width: 70%;
    }
    .inner-box {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .top-bar,
    .bottom-bar {
        padding: 15px 10px;
    }
    .cta-box {
        width: 95%;
        padding: 15px;
    }
    .mini-box-static {
        width: 90%;
    }
    .inner-box {
        width: 95%;
    }
    .icon-row img {
        width: 36px;
        height: 36px;
    }
}
