:root {
    --primary: #0f4c81;
    --secondary: #1b6ca8;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --dark: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Topbar contatti */
.topbar {
    background-color: var(--dark);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: var(--accent);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 50px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

/* Sezione Widget Meteo & Info */
.weather-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.weather-box h3 { 
    color: var(--primary); 
    margin-bottom: 5px; 
    font-size: 1.3rem; 
}

.weather-box p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light); 
    padding-bottom: 10px;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

/* Slide / Galleria Foto */
.gallery-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    background: #000;
}

.slide {
    display: none;
    text-align: center;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    opacity: 0.9;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover { 
    background: rgba(0,0,0,0.8); 
}

.prev { left: 15px; }
.next { right: 15px; }

/* Griglia Punti di Interesse */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover { 
    transform: translateY(-5px); 
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content { 
    padding: 25px; 
}

.card-content h3 { 
    color: var(--secondary); 
    margin-bottom: 10px; 
    font-size: 1.3rem; 
}

.card-content p { 
    color: #666; 
    font-size: 0.95rem; 
    margin-bottom: 15px; 
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover { 
    background-color: #fa5252; 
}

/* Responsive Design */
@media(max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .slide img {
        height: 300px;
    }
    .topbar {
        flex-direction: column;
        text-align: center;
    }
}