/* === TEMA MARINO CAMPO DI MARE === */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #87ceeb 100%);
    background-attachment: fixed;
    color: #2C3E50;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Rimozione effetto mare dalla parte alta */

/* Onde del Mare */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: 
        radial-gradient(ellipse 800px 200px at 50% 100%, rgba(135, 206, 235, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 600px 150px at 30% 100%, rgba(173, 216, 230, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 700px 180px at 70% 100%, rgba(176, 224, 230, 0.3) 0%, transparent 50%);
    z-index: -1;
}



/* Animazioni rimosse dalla parte alta */



/* Header con stile marino */
header {
    text-align: center;
    padding: 30px 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Link del logo */
header a {
    text-decoration: none;
    display: inline-block;
}

#logo {
    max-width: 180px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 50%;
    border: 3px solid rgba(30, 144, 255, 0.3);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
    animation: salento-sun 3s ease-in-out infinite;
}

#logo:hover {
    transform: scale(1.05);
    animation-play-state: paused;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(30, 144, 255, 0.5);
}

/* Animazione sole del Salento migliorata */
@keyframes salento-sun {
    0%, 100% {
        filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 100px rgba(255, 215, 0, 0.4));
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.7), 
            0 0 80px rgba(255, 215, 0, 0.5), 
            0 0 120px rgba(255, 215, 0, 0.3),
            0 0 160px rgba(255, 215, 0, 0.2),
            0 0 200px rgba(255, 215, 0, 0.1);
        border-color: #FFD700;
        transform: scale(1);
    }
    50% {
        filter: brightness(1.8) drop-shadow(0 0 50px rgba(255, 215, 0, 1)) drop-shadow(0 0 100px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 150px rgba(255, 215, 0, 0.6));
        box-shadow: 
            0 0 60px rgba(255, 215, 0, 0.9), 
            0 0 120px rgba(255, 215, 0, 0.7), 
            0 0 180px rgba(255, 215, 0, 0.5),
            0 0 240px rgba(255, 215, 0, 0.3),
            0 0 300px rgba(255, 215, 0, 0.2),
            0 0 400px rgba(255, 215, 0, 0.1);
        border-color: #FFA500;
        transform: scale(1.05);
    }
}

/* Navigazione marina */
.nav-links {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-links a:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Messaggio di benvenuto stile marino */
.welcome-message {
    text-align: center;
    margin: 30px auto;
    max-width: 900px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border-radius: 20px;
    border: 2px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}





.welcome-message > * {
    position: relative;
    z-index: 2;
}





.welcome-message h1 {
    font-family: 'Lobster', cursive;
    font-size: 3em;
    color: #1E90FF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-message p {
    font-size: 1.1em;
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: justify;
}

.oggi {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Contenitore principale */
main {
    margin: 20px;
    padding: 0 15px;
}

/* Sezioni con stile marino */
#map, #events, .description {
    margin: 30px auto;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(30, 144, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Titoli con stile marino */
h2, h3 {
    color: #1E90FF;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.2em;
    border-bottom: 3px solid rgba(30, 144, 255, 0.3);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.8em;
}

/* Mappa con cornice marina */
#map iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: 3px solid #1E90FF;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

/* Immagini eventi */
#events img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 3px solid #1E90FF;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
}

#events img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(30, 144, 255, 0.4);
}

/* Pulsanti stile marino */
.btn-custom {
    background: linear-gradient(45deg, #1E90FF, #00BFFF);
    color: #fff;
    border: none;
    margin: 8px;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
    border: 2px solid transparent;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Link prodotto marino */
.product-link {
    display: block;
    margin: 25px auto;
    max-width: 400px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(45deg, #20B2AA, #48D1CC);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.3);
    border: 2px solid transparent;
}

.product-link:hover {
    background: linear-gradient(45deg, #48D1CC, #20B2AA);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 178, 170, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Contenitore pulsanti */
.btn-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

/* Popup stile marino */
#domain-sale-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 144, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#domain-sale-popup > div {
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    color: #2C3E50;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(30, 144, 255, 0.3);
}

#domain-sale-popup h3 {
    color: #1E90FF;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .welcome-message h1 {
        font-size: 2.2em;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links a {
        margin: 5px 0;
        width: 200px;
    }
    
    #map iframe {
        height: 300px;
    }
    
    .welcome-message, #map, #events, .description {
        margin: 20px 10px;
        padding: 20px;
    }
}



/* Effetti di trasparenza per sovrapposizioni */
.welcome-message, .article, .description {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border: 2px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
