html {
    height: 100%;
}

body {
    color: #222222;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    background-color: #F9F9F9;
}

h2,
h3 {
    color: #1A3A60;
    font-family: Arial, "Lucida Grande", Helvetica, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1em;
}

#page {
    min-height: 100%;
    width: 95%;
    text-align: center;
    height: auto !important;
    height: 100%;
    margin: 0 auto -30px;
}

#footer,
#push {
    height: 30px;
    clear: both;
}

#content {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 20px;
}

#text {
    width: 100%;
    margin: 0 auto;
}

#header-bar {
    padding: 15px 0 0 0;
    margin: 0px 60px;
    position: relative;
    top: 0px;
    z-index: 5;
}

#content #title,
h1 {
    color: #1A3A60;
    min-width: 280px;
    margin: 10px auto;
    font-size: 1.3em;
    font-weight: inherit;
    font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
}

h1 {
    font-size: 1.4em;
}

#title a {
    text-decoration: none;
    color: #1A3A60;
}

#header-bar #title a {
    display: block;
    width: 200px;
    height: 40px;
    margin: 0 auto;
    background-image: url('/images/scioperotrasporti.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}

.subtitle {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

#content #commento {
    font-size: 1em;
    line-height: 1.5em;
    color: #444;
    min-width: 300px;
    margin: 0px 10px;
    font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
}

#content #commento .notes {
    font-size: 0.7em;
    line-height: 2em;
    margin: 20px 10px 30px 10px;
    text-decoration: underline;
}

#content #commento .help {
    position: relative;
    top: 3px;
    opacity: 0.7;
    cursor: pointer;
}

#content #commento .category {
    font-size: 0.8em;
    margin-bottom: 10px;
    display: none;
}

#content .social {
    margin: 0px auto;
    bottom: 0;
}

#content .social .text {
    font-size: 0.6em;
    line-height: 2em;
    font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
}

#content #fb_button {
    margin-bottom: 15px;
    float: right;
    margin-right: 20px;
}

#content #tw_button {
    margin: 10px 15px 0px 20px;
    float: left;
    text-align: left;
}

.revoke {
    font-size: 3.5em;
    color: red;
    opacity: 0.5;
    -webkit-transform: rotate(-30deg);
    -moz-transform: rotate(-30deg);
    -ms-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    border: 4px solid;
    width: 100%;
    padding: 30px 0px;
    margin: 0 auto;
    position: relative;
    top: 65px;
}

#form {
    margin-top: 25px;
}

#form input {
    padding: 2px;
    font-size: 1.3em;
    margin: 10px;
    border: 0px;
    border-bottom: 1px solid #ccc;
    color: #333;
    width: 70%;
    min-width: 300px;
}

#form button {
    margin-top: 25px;
}

#form input::placeholder {
    font-style: italic;
    color: #888;
}

.message_error {
    background-color: #f1f1f1;
    opacity: 0.7;
    color: red;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    line-height: 2em;
}

.message_success {
    background-color: #f1f1f1;
    opacity: 0.7;
    color: green;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    line-height: 2em;
}

.center_rb {

    max-width: 300px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 10px;
}

.center_rb button,
button.submit_ad,
a.submit_ad,
button.submit_ad_off {

    padding: 10px 15px;
    border: 0;
    border-radius: 4px;
    text-align: center;
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.center_rb button,
button.submit_ad,
a.submit_ad {
    background-color: #3b9ad8;
}

.center_rb button:hover,
button.submit_ad:hover,
a.submit_ad:hover {
    background-color: #2a7cbb;
}

button.submit_ad_off {
    background-color: #ccc;
}

.cta-main-button {
    display: block;
    background-color: #CC0000;
    color: white;
    padding: 15px 35px;
    margin: 20px auto;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-main-button:hover {
    background-color: #990000;
}

ul {
    display: block;
    list-style: none;
    padding-left: 0px;
}

li {
    display: block;
    list-style: none;
}

li a {
    text-decoration: none;
}

div.description {
    line-height: 1.5em;
}

div.link_nav {
    min-width: 280px;
    margin: 0px auto;
    line-height: 20px;
    padding: 7px 4px 0px;
    position: relative;
    top: -38px;
}

div.link_nav a {
    text-decoration: none;
    padding: 5px;
    border: 0;
    border-radius: 2px;
    text-align: center;
    background-color: #3b9ad8;
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
}

div.link_nav .right {
    float: right;
}

div.link_nav .left {
    float: left;
}

div.news_item {
    margin-bottom: 15px;
}

#footer-bar {
    font-size: 0.9em;
    background: #ddd;
    height: auto;
    min-height: 24px;
    line-height: 24px;
    color: #333;
    text-align: center;
    padding: 3px 0;
    opacity: 0.8;
}

#footer-bar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

#footer-bar p {
    margin: 0;
    padding: 0;
}

#footer-bar a {
    color: #111;
    display: inline-block;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold
}

.mobile-nav {
    display: none;
}

.hero-alert {
    background-color: #FFF2CC;
    border-bottom: 4px solid #FF8C00;
    padding: 40px 10px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-alert h1 {
    color: #CC0000 !important;
    font-size: 2.2em !important;
}

.hero-alert p {
    font-size: 1.1em;
    color: #444;
}

.sciopero-alert {
    background-color: white;
    padding: 10px;
    margin: 35px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sciopero-alert-block {
    background-color: white;
    padding: 15px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.sciopero-alert-block h2 {
    color: #CC0000;
    margin-top: 0;
}

a {
    color: #1A3A60;
    font-weight: bold;
    text-decoration: none;
}

.sciopero-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.sciopero-table th,
.sciopero-table td {
    border: 1px solid #eee;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.9em;
    vertical-align: middle;
}

.sciopero-table th {
    background-color: #f0f0f0;
    color: #1A3A60;
}

.sciopero-table tr:hover td {
    background-color: #3b9ad8;
    color: #FFF;
    cursor: pointer;
    background-color 0.5s;
}

.details-link {
    font-weight: bold;
    color: #3b9ad8;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 10px;
    padding: 0;
}

.benefit-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #3b9ad8;
    border-radius: 4px;
    background-color: white;
    list-style: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}

.benefit-item h3 {
    margin-top: 10px;
    font-size: 1.1em;
    color: #1A3A60;
}

.benefit-item p {
    font-size: 0.9em;
    color: #666;
}

.benefit-item span.icon {
    font-size: 2em;
}

/* Stili che rendono visibile l'icona tachimetro (via pseudo-elemento) */
.relevance-icon::before {
    content: '';
    display: block;
    height: 28px;
    width: 60px;
    margin: 0 auto;

    background-image: url('/images/risk.png');
    /* SOSTITUISCI CON IL TUO URL */
    background-repeat: no-repeat;
    background-size: auto 28px;
    /* Mantieni l'altezza fissa, auto-scala la larghezza */
}

.relevance-icon.media::before {
    /* Sposta lo sfondo per mostrare la lancetta al centro */
    background-position: 0% center;
}

.relevance-icon.assente::before {
    /* Posiziona lo sfondo per mostrare la lancetta sul verde/basso */
    background-position: 25% center;
}

.relevance-icon.bassa::before {
    /* Posiziona lo sfondo per mostrare la lancetta sul verde/basso */
    background-position: 50% center;
}

.relevance-icon.alta::before {
    /* Sposta lo sfondo per mostrare la lancetta in alto/rosso */
    background-position: 75% center;
}

.relevance-icon.massima::before {
    /* Sposta lo sfondo per mostrare la lancetta all'estremo massimo */
    background-position: 100% center;
}

@media (min-width: 50px) {
    ul.breadcrumb li img {
        height: 25px;
    }
}

@media (min-width: 350px) {
    ul.breadcrumb {
        display: flex;
        list-style: none;
        margin: 0px;
        width: 100%;
    }

    ul.breadcrumb li.li-img {
        height: 30px;
        width: 30px;
        border: 1px double #3b9ad8;
        border-radius: 18px;
        padding: 3px;
        margin: 2px 2px 0px 8px;
    }

    ul.breadcrumb li.path {
        max-width: 30%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    ul.breadcrumb li {
        display: inline-block;
        font-size: 0.8em;
        height: 100%;
        margin-top: 12px;
    }

    ul.breadcrumb li+li:before {
        padding: 0.2em;
        color: gray;
        content: "\203A";
    }

    ul.breadcrumb li a {
        color: #0275d8;
        text-decoration: none;
    }

    ul.breadcrumb li a:hover {
        color: #01447e;
        text-decoration: underline;
    }

    #footer-bar.fixed.bottom {
        bottom: 41px;
        top: auto;
    }

    #footer-bar {
        font-size: 0.7em;
    }

    .btn-live {
        padding: 4px 8px;
        margin: 0px 5px;
        font-size: 0.8em;
    }

    .sciopero-alert {
        margin: 25px auto;
    }
}

@media screen and (min-width: 600px) {
    .mobile-nav {
        display: none;
    }

    #content #commento .category {
        display: block;
    }

    div.news_item {
        margin-bottom: 25px;
    }

    #footer-bar.fixed.bottom {
        bottom: 0;
        top: auto;
    }

    #footer-bar {
        font-size: 0.9em;
    }

    #content {
        padding: 20px 0;
    }

    #content #title,
    h1 {
        font-size: 1.5em;
    }

    .hero-alert h1 {
        font-size: 3em !important;
    }

    .benefit-list {
        flex-direction: row;
        gap: 30px;
        margin: 30px auto;
        padding: 0 10px;
    }

    .benefit-item {
        flex: 1;
        border-left-width: 6px;
        padding: 20px;
    }

    .cta-main-button {
        max-width: 600px;
    }
}

/* LIVE Button & Animation */
.btn-live {
    display: inline-block;
    background-color: #fff;
    color: #e74c3c;
    padding: 12px 24px;
    margin: 10px 5px;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    vertical-align: middle;
}

.btn-live:hover {
    background-color: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.25);
}

.btn-live .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-live 1s infinite;
}

.btn-live:hover .dot {
    background-color: #fff;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating Bell Button */
.floating-bell {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b9ad8, #2a7cbb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-bell:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-bell .bell-icon {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    transform-origin: top center;
    animation: bell-ring 3s infinite;
}

@keyframes bell-ring {
    0% {
        transform: rotate(0);
    }

    5% {
        transform: rotate(20deg);
    }

    10% {
        transform: rotate(-18deg);
    }

    15% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-12deg);
    }

    25% {
        transform: rotate(8deg);
    }

    30% {
        transform: rotate(-4deg);
    }

    35% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .floating-bell {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}