/* Stili per il modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Sfondo scuro semi-trasparente */
    overflow: auto;
}

/* Contenuto del Modal */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Pulsante di chiusura */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Stili per le schede */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #e74c3c;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Layout per il confronto */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.place-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.place-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.place-info {
    padding: 20px;
}

.place-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.fact-item {
    display: flex;
    margin-bottom: 12px;
}

.fact-label {
    font-weight: bold;
    min-width: 120px;
    color: #555;
}

.category-title {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}