body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding-top: 30px;
}

.logo-corner {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 100px;
    height: 100px;
    opacity: 0;
    z-index: 1;
}

.section-sx {
    align-content: left;
}

.section-dx {
    align-content: right;
}

.section-quality {
    background: #000;
    border-radius: 12px;
    margin-bottom: 32px;
    padding: 24px 18px 18px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.section-body {
    background: #000;
    border-radius: 12px;
    margin-bottom: 32px;
    padding: 24px 18px 18px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.header {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    max-width: 80px;
    background: url('img/logo-shield.png') no-repeat center/contain;
}

.title {
    font-size: 3em;
    color: #b24a2d;
    font-weight: bold;
    margin-top: 0;
    text-align: center;
}

.main-content {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.section {
    width: 45%;
    position: relative;
}

.section-title {
    font-size: 2em;
    color: #b24a2d;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.defense-logo {
    display: block;
    margin: 0 auto 5px auto;
    width: 400px;
    height: 400px;
    background: url('img/tough-shells-logo.png') no-repeat center/contain;
    border-radius: 10px;
    border-color: white;
}

.mining-logos {
    display: block;
    margin: 0 auto 5px auto;
    width: 350px;
    height: 250px;
    background: url('img/ital.png') no-repeat center/contain;
    background-color: #fff;
    border-radius: 10px;
}

.list-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}




.corner-logo {
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: url('img/tough-shells-logo.png') no-repeat center/contain;
    z-index: 2;
}

/* --- New Section --- */
.faber-section {
    margin-top: 60px;
    background: #000;
    border-radius: 16px;
    padding: 30px 24px 24px 24px;
    position: relative;
    overflow: hidden;
}

.faber-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.faber-logo {
    width: 200px;
    height: 100px;
    padding-bottom: 10px;
    padding-top: 80px;
    background: url('img/faber-logo.png') no-repeat center/contain;
}

.faber-title {
    font-size: 2.1em;
    color: #e15c2a;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}

.faber-title_2 {
    font-size: 1.3em;
    color: #e15c2a;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
}

.faber-description {
    width: 200px;

    font-size: 1.2em;
    margin-left: 2px;
    margin-bottom: 24px;
}

.faber-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px;
    flex-direction: column;
}

.faber-content2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 36px;
}

.contacts-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 36px;
}

.faber-map {
    width: 600px;
    height: 220px;
    background: url('img/italy-map2.png') no-repeat center/contain;
    margin-right: 18px;
    margin-top: 80px;
}

.faber-sites {
    flex: 1;
    min-width: 220px;
}

.faber-sites h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.faber-sites ul {
    font-size: 1.07em;
    margin-left: 12px;
    margin-bottom: 0;
}

.faber-sites li {
    margin-bottom: 12px;
}

ul {
    font-size: 1.3em;
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 40px;
    padding-top: 40px;
}


.libig {
    font-size: 1.5em;
}

ol {
    font-size: 1.3em;
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 40px;
    padding-top: 40px;
}

ul.no-dot {
    list-style: none;
    display: block;
    margin-left: 0px;
    padding-inline-start: 0px;
}

ul.no-dot li {
    margin-bottom: 12px;
}

ul.no-dot a {
    color: #fff;
}

ul.custom-list {
    padding: 40px 0px 0px 0px;
    margin: 0;
}

ul.custom-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
}

ul.custom-list li::before {
    content: "•";
    margin-right: 0.5em;
    line-height: 1.2;
    font-size: 1.3em;
    flex-shrink: 0;
}

ul.custom-list2 {
    padding: 40px 0px 0px 0px;
    margin: 0;
}

ul.custom-list2 li {
    display: flex;
    align-items: flex-start;
    font-size: smaller;
}

ul.custom-list2 li::before {
    content: "•";
    margin-right: 0.5em;
    line-height: 1.2;
    font-size: 1.3em;
    flex-shrink: 0;
}

ol.custom-list {
    padding: 40px 0px 0px 0px;
    margin: 0;
}

.custom-list b {
    white-space: nowrap;
}

ol.custom-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
}

ol.custom-list li::before {
    content: "•";
    margin-right: 0.5em;
    line-height: 1.2;
    font-size: 1.3em;
    flex-shrink: 0;
}

/* Table basic appearance */
.responsive-table {

    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    margin-top: 24px;
}

.responsive-table thead th {
    text-align: center;
    color: #e15c2a;
    font-weight: 800;
    font-size: 1.5rem;
    padding: 16px;
    vertical-align: bottom;
    letter-spacing: 0.01em;
}

.responsive-table tbody td {
    padding: calc(var(--pad-v) + 2px) var(--pad-h);
    color: var(--text);
    font-size: 1.25rem;
    vertical-align: top;
    word-wrap: break-word;
}

.responsive-table tbody tr {
    border-bottom: 10px solid transparent;
    /* spacing between rows */
}

/* Make the 2nd column centered to mimic image layout */
.col-howitzer {
    text-align: left;
    font-weight: 700;
    color: #f5f5f5;

}

.col-product {
    font-weight: 700;
    color: #fff;
}

.col-pressure {
    text-align: right;
    font-weight: 700;
    color: #fff;
}

/* Small visual tweak for the "4300 bar" with space */
.col-pressure .space-ok {
    white-space: nowrap;
}

.responsive-table2 thead th {
    text-align: center;
    color: #e15c2a;
    font-weight: 800;
    font-size: 1.5rem;
    padding: var(--pad-v) var(--pad-h);
    vertical-align: bottom;
    letter-spacing: 0.01em;
}

.responsive-table2 {

    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    margin-top: 24px;
}

.responsive-table2 tbody td {
    padding-right: 24px;
    font-size: 1.2rem;
    vertical-align: top;
    word-wrap: break-word;
}

@media (max-width:1025px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .section {
        width: 100%;
        margin-bottom: 40px;
    }

    .corner-logo {
        position: static;
        display: block;
        margin: 40px auto 0 auto;
    }

    .faber-content {
        flex-direction: column;
        gap: 22px;
    }

    .faber-map {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
        /* height: 100%; */
        margin-top: 5px;

    }



}



.image-grid {
    display: grid;
    gap: 16px;
    /* auto-fit + minmax rende il layout adattivo: tante colonne da almeno 220px ciascuna */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card per ogni "cella" */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card:focus-within,
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
}

/* Se ci sono più immagini nella stessa card, le mettiamo in fila (o impilate su schermi piccoli) */
.card .images {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card .images img {
    /* Ogni immagine occupa lo spazio disponibile ma non supera il 100% del suo contenitore */
    width: auto;
    /* evita l'ingrandimento oltre la risoluzione naturale: l'immagine mantiene la dimensione intrinseca se il contenitore è più grande */
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Se vuoi due immagini affiancate dentro la card, usa questa classe su img.small */
.card .images img.small {
    max-width: 48%;
}

.image-caption {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-top: 6px;
}

/* Breakpoint per adattare il layout */
@media (max-width: 900px) {
    .image-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card {
        padding: 8px;
    }

    .responsive-table thead th {
        font-size: 1.1rem;
    }
    .responsive-table tbody td {
        font-size: 1.1rem;
    }
    .defense-logo {
        width: min(80vw, 400px);
        max-width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        background-size: contain;
        background-position: center;
        margin: 0 auto;
        padding: 0;
    }

    .libig {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {

    /* su schermi stretti le card diventano singole per riga (minmax garantisce già 1col, ma qui forziamo aspetti interni) */
    .image-grid {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .card .images img.small {
        max-width: 100%;
    }

    /* impilare le immagini piccole */
    body {
        padding: 12px;
    }

    h1 {
        font-size: 1.05rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, rgba(178, 74, 45, 0.1), rgba(0, 0, 0, 0.3));
    border-top: 2px solid #b24a2d;
    margin-top: 60px;
    padding: 40px 0 20px 0;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.footer-section h4 {
    color: #e15c2a;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #b24a2d;
    padding-bottom: 8px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e15c2a;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(178, 74, 45, 0.3);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 8px 0;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e15c2a;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        max-width: 100%;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 8px;
    }
}
