/* =========================================================
   OML METEO - MAIN CSS
   Regole generali del sito
   ========================================================= */


/* ---------------------------------------------------------
   1. RESET E BOX MODEL
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: 'Exo 2';
	background-image: linear-gradient(rgba(137, 195, 241, 0.95), rgba(137, 195, 241, 0.95)),url(/images/bg-omlmeteo.png);
	background-repeat:no-repeat;
	background-position: center top;
	-webkit-background-size:cover;
	-moz-background-size:cover;
	-o-background-size:cover;
	background-size: cover;
	background-attachment: fixed;
	color: #17202a;
}

#preloader {
    position: fixed;
    top: 0;  left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color:#ffd21f;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 8px solid #8e8e8e;
    border-top: 8px solid #ffd21f;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------------------------------------------------------
   2. ELEMENTI BASE
   --------------------------------------------------------- */

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: #005a9c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

p {
    margin-top: 0;
}


/* ---------------------------------------------------------
   3. WRAPPER PRINCIPALE
   --------------------------------------------------------- */

#wrapper {
    width: 1200px;
    max-width: calc(100% - 20px);
    margin: 0 auto;
    background: #eef4f8;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------
   4. HEADER
   --------------------------------------------------------- */

header {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    max-height: 150px;
    color: #fff;
    
}

header img {
    display: block;
    width: 100%;
    height: auto;
}

#site-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-header-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-header-image {
    display: block;
    width: 100%;
    height: auto;
}

.btn {
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(15, 23, 42, 0.75); /* Fondo scuro semi-trasparente */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px); /* Effetto vetro opaco */
    transition: all 0.2s ease-in-out;
}
    
.btn:hover {
    background-color: #2563eb; /* Blu acceso al passaggio del mouse */
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.wp-login {
    position: absolute;
    bottom: 25px;
    right: 12px;
}
.weather-clock {padding:0 2px; font-family: "Courier New", sans-serif;
    letter-spacing: -0.7px;
    border-top:1px dotted #ddd;
    border-bottom:1px solid #ddd;
    background-color: #2b3990;
    text-align:right;
}

/* ---------------------------------------------------------
   5. MENU PRINCIPALE
   --------------------------------------------------------- */

nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

#site-menu {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #02203a;
    border-top: 1px solid #183e59;
    border-bottom: 2px solid #99cc00;
}

.site-menu-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 7px 11px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    border-right: 1px solid #183e59;
}

.main-menu a:hover {
    background: #16415f;
    color: #ffffff;
    text-decoration: none;
}

.main-menu .home-link a {
    background: #0b304d;
    color: #adff2f;
    border-bottom: 2px solid #adff2f;
}

.main-menu .home-link a:hover {
    background: #16415f;
    color: #adff2f;
}


/* ---------------------------------------------------------
   6. CONTENUTO PRINCIPALE
   --------------------------------------------------------- */

#main-content {
    width: 100%;
    margin: 0;
    padding: 8px;
    background: #eef4f8;
}

#page-content {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ---------------------------------------------------------
   7. STRUTTURA A COLONNE
   --------------------------------------------------------- */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;

    width: 100%;
}

.main-column,
.sidebar {
    min-width: 0;
    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   8. CONTENITORE GENERICO
   --------------------------------------------------------- */

.container {
    width: 100%;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------- */

footer {
    width: 100%;
    margin: 0;
    padding: 10px 8px;
    background: #02203a;
    color: #ffffff;
    text-shadow: 1px 1px 1px #000;
}

#site-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #02203a;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

#site-footer a {
    color: #adff2f;
    text-decoration: none;
}

#site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-brand {
    display: grid;
    grid-template-columns: 2fr repeat(1, 1fr);
    align-items: center;
    gap: 10px;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 5px;
}

.footer-email {
    font-weight: bold;
    transition: border-bottom 0.3s ease;
}

.footer-nav {
    margin-bottom: 12px;
    background-color: rgba(2, 58, 56,0.15);
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li:not(:last-child)::after {
    content: "•";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.45);
}

#site-footer nav.footer-nav a {
    color: #ADFF2F;
    font-family: 'Jersey 25', Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

#site-footer nav.footer-nav a:hover {
    text-decoration: underline;
    color: #ADFF2F;
}

.footer-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-content p {
    margin: 0;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.3;
}
.footer-description {
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.5;
}

/* ---------------------------------------------------------
   10. UTILITÀ
   --------------------------------------------------------- */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ---------------------------------------------------------
   11. RESPONSIVE - TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    #wrapper {
        max-width: calc(100% - 16px);
        margin-top: 8px;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 10px;
    }

}


/* ---------------------------------------------------------
   12. RESPONSIVE - SMARTPHONE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    #wrapper {
        width: 100%;
        max-width: 100%;

        margin: 0;
    }
    
    .main-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-menu li {
        width: 100%;
    }

    .main-menu a {
        text-align: center;
    }

    #main-content {
        padding: 8px 0;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sidebar {
        width: 100%;
    }

}


/* ---------------------------------------------------------
   13. SMALL SMARTPHONE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    body {
        font-size: 13px;
    }

    #main-content, #page-content {
        padding: 6px 0;
    }

}