/* ==================================================
   STYLE 2026 – RACI
   File CSS unico, pulito e stabile
   ================================================== */


/* ======================
   1. BASE / RESET
   ====================== */

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: auto;
    font-family: Verdana, Helvetica, sans-serif;
    color: #2F4999;
    background-color: #cccccc;
    background-image: url("../imagesCSS/back_lgt.jpg");
}

img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}


p {
    margin: 0.5em auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ======================
   2. TITOLI
   ====================== */

h1 {
    background-color: #efefef;
    margin: 1% 0;
    padding: 1%;
}

h2 {
    text-align: center;
    padding: 10px;
}


/* ======================
   3. MENU (DESKTOP)
   ====================== */

#menu {
    width: 100%;
    background: linear-gradient(#2F4999, #111);
    border: 2px solid #222;
    border-radius: 5px;
    box-shadow: 5px 5px 20px #2F4999;
    text-align: center;
}

#menu li {
    display: inline-block;
    position: relative;
}

#menu li a {
    display: block;
    padding: 10px;
    width: 90px;
    color: #fff;
    font: bold 0.95em Verdana, Helvetica, sans-serif;
    text-decoration: none;
    text-shadow: 0 1px #0000FF;
    border-radius: 6px;
}

#menu li a:hover {
    color: #FFFF00;
}

/* submenu */
#menu li .hidden {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    visibility: hidden;
    opacity: 0;
}

#menu li:hover .hidden {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}


/* ======================
   4. SLIDESHOW
   ====================== */

.slideshow-container {
    max-width: 1200px;   /* desktop largo */
    width: 70%;
margin:auto;
}


/* ======================
   SOCIAL ICONS
   ====================== */

.social-icons {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}



/* ======================
   SOCIAL BAR TOP
   ====================== */

.social-title {
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 10px 0;
    margin-bottom: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.social-title img {
    width: 34px;
    height: 34px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.social-title img:hover {
    transform: scale(1.1);
}

/* ======================
   CTA SLIDESHOW – BASE
   ====================== */

.numbertext a {
    margin-bottom: 15px;
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    color: #2F4999;
}

/* ======================
   CTA SLIDESHOW – MOBILE
   ====================== */

@media (max-width: 768px) {

    .numbertext a {
        font-size: 1.6em;   /* aumento netto e visibile */
        padding: 10px 16px;
        background: rgba(255,255,255,0.8);
        border-radius: 8px;
    }
}

/* ======================
   PULSE ANIMATION
   ====================== */

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47,73,153,0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(47,73,153,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47,73,153,0);
    }
}

.slide-cta {
    animation: pulse 2.5s infinite;
}

/* ======================
   ROTATE DEVICE HINT
   ====================== */

.rotate-hint {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1.1em;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.rotate-hint.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* ======================
   SLIDESHOW FADE (REAL)
   ====================== */

.slideshow-container {
    position: relative;
    min-height: 400px;
}

@media (max-width: 768px) {
    .slideshow-container {
        min-height: 260px;
    }
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;

    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.mySlides.active .slide-cta {
    opacity: 1;
    transition-delay: 0.2s;
}
.mySlides.active {
    opacity: 1;
        z-index: 2;

}


/* ======================
   SLIDESHOW FINALE – FADE
   ====================== */
.slide-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-cta {
    display: inline-block;
    margin-bottom: 20px;      /* SPAZIO sopra l’immagine */
    font-size: 1.3em;
    font-weight: bold;
    color: #2F4999;
    text-align: center;
}

/* Mobile: CTA un po’ più grande */
@media (max-width: 768px) {
    .slide-cta {
        font-size: 1.6em;
        margin-bottom: 24px;
    }
}

.slide-link img {
    width: 65%;
    height: auto;
}

/* ======================
   SHINYSTAT – POSIZIONE SOTTO SLIDESHOW
   ====================== */

/* Neutralizza il badge flottante */
iframe[src*="shinystat"],
iframe[src*="ShinyStat"],
div[id*="shinystat"],
div[class*="shinystat"] {
    position: static !important;
    display: block !important;

    z-index: auto !important;      
 margin-top: clamp(80px, 8vh, 260px);
    text-align: center;
}

/* ======================
   SLIDESHOW – SPAZIO PER SHINYSTAT
   ====================== */

.slideshow-container {
    margin-bottom: 20px;
}