html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #1f2d24;
}


/* navbar */

.navbar {
    background: rgba(20, 70, 43, 0.94) !important;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}


/* home */

.hero {
    min-height: 100vh;

    position: relative;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.58)
        ),
        url("spighe.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}

.hero-content {
    min-height: calc(100vh - 70px);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.badge-webgis {
    display: inline-block;

    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(8px);

    padding: 8px 16px;

    border-radius: 50px;

    font-size: 0.9rem;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 15px;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);

    line-height: 1;

  
}

.hero p {
    font-size: 1.25rem;

    line-height: 1.7;

    max-width: 650px;

    color: rgba(255, 255, 255, 0.94);

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5);

    margin-left: auto;
    margin-right: auto;
}


/* bottoni */

.btn-webgis {
    background-color: #198754;

    border: none;

    color: white;

    padding: 13px 25px;

    border-radius: 10px;

    font-weight: 600;

    transition: 0.25s;
}

.btn-webgis:hover {
    background-color: #157347;

    color: white;

    transform: translateY(-2px);
}

.btn-archivio {
    background-color: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.5);

    color: white;

    padding: 13px 25px;

    border-radius: 10px;

    font-weight: 600;

    backdrop-filter: blur(6px);

    transition: 0.25s;
}

.btn-archivio:hover {
    background-color: white;

    color: #1f5136;

    transform: translateY(-2px);
}


/* archivio */

.testata {
    min-height: 320px;

    background:
        linear-gradient(
            rgba(20, 45, 30, 0.45),
            rgba(20, 45, 30, 0.60)
        ),
        url("uva.jpeg") center center / cover no-repeat;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.testata h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 15px;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
}

.testata p {
    max-width: 650px;
    margin: 0 auto;

    font-size: 1.15rem;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.95);

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.archivio-container {
    padding: 45px 30px 70px;

    background:
        linear-gradient(
            rgba(20, 45, 30, 0.55),
            rgba(20, 45, 30, 0.65)
        ),
        url("uva.jpeg") center center / cover no-repeat;

    display: flex;
    justify-content: center;
}

.archivio-card {
    width: 100%;
    max-width: 1100px;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 16px;
    overflow: hidden;

    background: rgba(210, 228, 215, 0.90);

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.archivio-card .card-header {
    background: rgba(20, 70, 43, 0.92);

    color: white;

    border: none;

    padding: 16px 20px;

    font-size: 1.1rem;

    font-weight: 600;
}

.archivio-card .table {
    --bs-table-bg: transparent;

    margin-bottom: 0;
}

.archivio-card .table thead th {
    background: rgba(220, 235, 224, 0.92);

    color: #315340;

    border-bottom: 1px solid #cbdccf;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    padding: 13px 16px;
}

.archivio-card .table tbody td {
    background: rgba(248, 251, 248, 0.82);

    border-color: rgba(203, 220, 207, 0.8);

    padding: 13px 16px;
}

.archivio-card .table tbody tr:hover td {
    background: rgba(225, 240, 229, 0.95);
}

.badge-tipologia {
    display: inline-block;

    background-color: #e1eee5;

    color: #28603c;

    border-radius: 50px;

    padding: 5px 10px;

    font-size: 0.78rem;

    font-weight: 600;
}

/*stile mappa */
#mappa {
    width: 100%;
    height: calc(100vh - 56px);
}

/* popup mappa */

.leaflet-popup-content-wrapper {
    background: #1b5333;
    color: white;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.30);
}

.leaflet-popup-content {
    margin: 12px 14px;
    min-width: 240px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.leaflet-popup-tip {
    background: #1b5333;
}

.leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 22px !important;
    font-weight: normal !important;
}

.leaflet-popup-close-button:hover {
    color: white !important;
}

.leaflet-popup-content p {
    margin: 0;
}

/* descrizione azienda */

.leaflet-popup-content b:first-child {
    display: block;

    background: white;
    color: #1b5333;

    padding: 10px 12px;
    margin: -2px -2px 14px;

    border-radius: 9px;

    font-size: 1.1rem;
    line-height: 1.3;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content b {
    color: white;
}

/* pulsante apri */

.leaflet-popup-content a {
    display: inline-block;

    margin-top: 14px;
    padding: 7px 14px;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 8px;

    color: white;
    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.leaflet-popup-content a:hover {
    background: white;
    color: #1b5333;
}

/* dettaglio azienda */

.pagina-dettaglio {
    min-height: calc(100vh - 56px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 30px;

    background:
        linear-gradient(
            rgba(20, 45, 30, 0.62),
            rgba(20, 45, 30, 0.72)
        ),
        url("uva.jpeg") center center / cover no-repeat;

    color: white;
}

.dettaglio-contenuto {
    width: 100%;
    max-width: 900px;

    text-align: center;
}

.dettaglio-intestazione {
    margin-bottom: 45px;
}

.dettaglio-label {
    display: inline-block;

    margin-bottom: 18px;

    padding: 7px 16px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.12);

    font-size: 0.9rem;
    font-weight: 600;

    backdrop-filter: blur(6px);
}

.dettaglio-intestazione h1 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    font-weight: 800;

    line-height: 1.1;

    color: white;

    text-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5);
}

.dettaglio-informazioni {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    max-width: 750px;

    margin: 0 auto 40px;
}

.informazione {
    padding: 20px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(8px);
}

.etichetta {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.informazione strong {
    color: white;

    font-size: 1.1rem;

    font-weight: 600;
}

.btn-torna {
    display: inline-block;

    padding: 11px 20px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    text-decoration: none;

    font-weight: 600;

    backdrop-filter: blur(6px);

    transition: 0.2s;
}

.btn-torna:hover {
    background: white;

    color: #1b5333;

    border-color: white;
}

@media (max-width: 768px) {

    .pagina-dettaglio {
        padding: 50px 20px;
    }

    .dettaglio-informazioni {
        grid-template-columns: 1fr;
    }

    .dettaglio-intestazione h1 {
        font-size: 2.5rem;
    }

}