/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
========================= */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    height: 50px;
    width: auto;
}

/* =========================
   CONTENUTO PRINCIPALE
========================= */

.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin: 30px 0 20px;
}

/* =========================
   IMMAGINI
========================= */

.foto-top {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    margin-bottom: 30px;
}

.placeholder-image {
    display: none;
    width: 100%;
    height: 300px;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 100%
    );
    border-radius: 10px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* =========================
   METEO
========================= */

.meteo-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    overflow-x: auto;
}

.meteo-wrapper iframe {
    display: block;
    width: 100%;
    min-width: 800px;
    height: 450px;
    border: 0;
    border-radius: 10px;
}

.meteo-credit {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
}

.meteo-credit a {
    color: #666;
    text-decoration: none;
}

.meteo-credit a:hover {
    color: #0066cc;
}

/* =========================
   ALBA / TRAMONTO
========================= */

.sun-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
    margin: 30px 0;
}

.sun-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.sun-icon {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.sun-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-bottom: 4px;
}

.sun-time {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 100%
    );
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
    animation: fadeIn .8s ease-out;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-section p {
    margin: 8px 0;
    opacity: .9;
    font-size: 14px;
}

.current-time {
    font-size: 13px;
    font-style: italic;
    opacity: .8;
}

/* =========================
   CONTATORE
========================= */

.counter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.counter-info {
    text-align: left;
}

.counter-label {
    font-size: 14px;
    opacity: .9;
    margin-bottom: 5px;
}

.counter-number {
    font-size: 32px;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 8px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
}

.counter-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: .8;
}

.online-visitors {
    background: rgba(255,255,255,.1);
    padding: 5px 10px;
    border-radius: 5px;
}

/* =========================
   FOOTER LINKS
========================= */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: .9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   ANIMAZIONI
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .logo {
        height: 40px;
    }

    .main-content {
        padding: 15px;
    }

    .section-title {
        font-size: 22px;
        margin: 25px 0 15px;
    }

     .meteo-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .meteo-wrapper iframe {
        width: 800px;
        min-width: 800px;
        height: 420px;
    }

}

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .counter-number {
        font-size: 28px;
    }

    .counter-details {
        flex-direction: column;
        gap: 8px;
    }

    .sun-container {
        gap: 20px;
        flex-wrap: wrap;
    }

    .sun-box {
        min-width: 120px;
        flex: 1 1 40%;
    }

    .sun-icon {
        width: 60px;
    }

.pin{
    width:16px;
    height:16px;
    background:#ff0000;
    border-radius:50%;
    border:2px solid white;
    box-shadow:0 0 10px rgba(255,0,0,.8);
}

/* =========================
   TABLET
========================= */

@media (min-width: 769px) and (max-width: 1024px) {

    .main-content {
        padding: 25px;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-content {
        grid-template-columns: repeat(2,1fr);
    }

    .sun-icon {
        width: 70px;
    }

    .meteo-wrapper iframe {
        height: 650px;
    }
}

/* =========================
   DESKTOP LARGE
========================= */

@media (min-width: 1201px) {

    .main-content {
        padding: 30px;
    }

}