/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
*/

/* --- FONT & BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body, h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif !important; }


.home .site-content {
    padding-top: 20px !important;
}

/* --- MENU TECH TANIFON --- */
.main-navigation .main-nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation .main-nav ul li:hover > a {
    color: #00aaff !important;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.main-navigation .main-nav ul li > a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #00aaff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation .main-nav ul li:hover > a::after {
    width: 70%;
}

/* --- IMMAGINI: SOLO BORDI E TRANSIZIONE, NESSUNA DIMENSIONE --- */
img, .wp-block-image img, .post-image img {
    border-radius: 15px !important;
    transition: transform 0.5s ease;
}

/* --- CONTENITORE ANTEPRIMA: ALTEZZA FISSA QUI --- */
.post-image {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    border-radius: 15px;
    width: 80% !important;
    height: 400px !important;
    display: block !important;
}

/* --- IMMAGINE DENTRO IL CONTENITORE --- */
.post-image img,
.post-image a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px !important;
    display: block !important;
    margin: 0 !important;
    transform: none;
}

/* Zoom al passaggio */
.post-image:hover img {
    transform: scale(1.1) !important;
    cursor: pointer;
}

/* --- SPAZIO TRA IMMAGINE E TITOLO --- */
.entry-header {
    margin-top: 30px !important;
    text-align: center;
}

/* --- NASCONDI ANTEPRIMA NEL SINGOLO ARTICOLO --- */
.single .featured-image {
    display: none;
}

/* --- THUMBNAIL FALLBACK GENERATEPRESS --- */
.post-thumbnail {
    display: block !important;
    text-align: center !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 350px !important;
    border-radius: 15px !important;
}

.post-thumbnail img,
.post-thumbnail a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px !important;
    display: block !important;
    margin: 0 !important;
}

/* --- ECCEZIONE SIDEBAR: 60x60 fisso --- */
.inside-right-sidebar img,
.inside-right-sidebar ul.wp-block-latest-posts li img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* --- BARRA DI RICERCA APPLE STYLE --- */
.widget_search .wp-block-search__label {
    display: none;
}

.wp-block-search__inside-wrapper {
    background-color: #f5f5f7 !important;
    border-radius: 50px !important;
    padding: 3px !important;
    border: 1px solid #d2d2d7 !important;
    display: flex !important;
    transition: all 0.3s ease !important;
}

.wp-block-search__input {
    background-color: transparent !important;
    border: none !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    outline: none !important;
    color: #1d1d1f !important;
}

.wp-block-search__button {
    background-color: #00aaff !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    border: none !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.wp-block-search__button:hover { 
    background-color: #008cff !important; 
}

.wp-block-search__inside-wrapper:focus-within {
    background-color: #ffffff !important;
    border-color: #00aaff !important;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2) !important;
}

/* --- PULIZIA FINALE --- */
.generate-columns-container .inside-article:hover {
    box-shadow: none !important;
}

/* --- SIDEBAR: ARTICOLI RECENTI --- */
.inside-right-sidebar ul.wp-block-latest-posts {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.inside-right-sidebar ul.wp-block-latest-posts li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    padding: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid #00aaff !important;
    overflow: hidden !important;
    text-align: left !important;
}

.inside-right-sidebar ul.wp-block-latest-posts li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-align: left !important;
    flex: 1 !important;
}

.inside-right-sidebar ul.wp-block-latest-posts li:hover {
    transform: translateX(5px) !important;
    background: #f0f9ff !important;
}

/* --- SIDEBAR: ARCHIVI --- */
.inside-right-sidebar ul.wp-block-archives-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    border-left: 2px solid #d2d2d7 !important;
    margin-left: 10px !important;
}

.inside-right-sidebar ul.wp-block-archives-list li {
    position: relative;
    padding: 8px 0 8px 20px !important;
    margin: 0 !important;
    font-style: italic;
    color: #666;
}

.inside-right-sidebar ul.wp-block-archives-list li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #00aaff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.inside-right-sidebar ul.wp-block-archives-list li a {
    color: #444 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.inside-right-sidebar ul.wp-block-archives-list li a:hover {
    color: #00aaff !important;
    text-decoration: underline !important;
}

/* --- SIDEBAR: CATEGORIE --- */
.inside-right-sidebar ul.wp-block-categories-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.inside-right-sidebar ul.wp-block-categories-list li {
    background: #1d1d1f !important;
    color: #ffffff !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

.inside-right-sidebar ul.wp-block-categories-list li a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.inside-right-sidebar ul.wp-block-categories-list li:hover {
    background: #00aaff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3) !important;
}

/* --- SIDEBAR: TITOLI --- */
.inside-right-sidebar h2.wp-block-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #1d1d1f !important;
    border-bottom: 2px solid #00aaff !important;
    display: block !important;
    text-align: left !important;
    padding-bottom: 5px !important;
    margin-bottom: 20px !important;
}

.page-id-947 .tradingview-ticker-container {
    min-height: 46px; /* Evita che il contenuto sotto "salti" quando appare il ticker */
    background: #000;
    border-bottom: 2px solid #2ecc71;
}

/* --- FOOTER SUBSCRIBE BUTTON --- */
.site-footer {
    position: relative !important;
}

.footer-subscribe-container {
    position: absolute !important;
    top: 20px !important;
    right: 30px !important;
    z-index: 100 !important;
}

.btn-subscribe-tech {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    border: 1px solid #00aaff !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2) !important;
}

.paper-plane-icon {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.4s ease !important;
}

.btn-subscribe-tech:hover {
    background: #00aaff !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.5) !important;
    border-color: #ffffff !important;
}

.btn-subscribe-tech:hover .paper-plane-icon {
    transform: translateX(5px) translateY(-5px) rotate(-10deg) !important;
}

/* --- NEWSLETTER SIDEBAR --- */
.newsletter-tech-box {
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 20px !important;
    padding: 25px !important;
    text-align: center !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 30px !important;
}

.newsletter-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
}

.newsletter-subtitle {
    font-size: 12px !important;
    color: #86868b !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

.newsletter-tech-box input[type="email"] {
    width: 100% !important;
    background: #f5f5f7 !important;
    border: 1px solid transparent !important;
    border-radius: 50px !important;
    padding: 10px 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.newsletter-tech-box input[type="email"]:focus {
    background: #ffffff !important;
    border-color: #00aaff !important;
    outline: none !important;
}

.newsletter-tech-box .wpcf7-submit {
    width: 100% !important;
    background: #00aaff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.newsletter-tech-box .wpcf7-submit:hover {
    background: #008cff !important;
    transform: translateY(-2px) !important;
}

.newsletter-tech-box .wpcf7-response-output {
    border: 2px solid #00aaff !important;
    background: rgba(0, 170, 255, 0.05) !important;
    color: #1d1d1f !important;
    border-radius: 12px !important;
    padding: 10px !important;
    font-size: 12px !important;
    margin-top: 15px !important;
}

/* --- STORE PC TANIFON --- */
.tanifon-pc-store {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 10px;
    background: #fbfbfd;
}

.pc-card {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 22px;
    padding: 30px;
    width: 320px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #00aaff;
}

.pc-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.bronze { background: #ecd9c6; color: #8a5a44; }
.silver { background: #e5e5e7; color: #3a3a3c; }
.gold { background: #fff3cd; color: #856404; }

.pc-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pc-card h3 {
    font-size: 22px;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.pc-description {
    font-size: 14px;
    color: #86868b;
    height: 45px;
    margin-bottom: 20px;
}

.pc-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    font-size: 13px;
    color: #424245;
}

.pc-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
}

.pc-specs li::before {
    content: "✓";
    color: #00aaff;
    margin-right: 8px;
    font-weight: bold;
}

.btn-preventivo {
    background: #1d1d1f;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-top: auto;
}

.btn-preventivo:hover {
    background: #00aaff;
    transform: scale(1.05);
}

.pc-card.featured {
    border: 2px solid #00aaff;
    transform: scale(1.05);
}

/* --- POPUP --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: popupScale 0.3s ease-out;
    max-height: 85vh !important;
    overflow-y: auto !important;
    text-align: left !important;
}

@keyframes popupScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer !important;
    color: #86868b;
}

.popup-form input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    margin: 20px 0;
    border: 1px solid #d2d2d7;
    border-radius: 50px;
    background: #f5f5f7;
    outline: none;
}

.popup-form input:focus { border-color: #00aaff; background: white; }

.btn-submit-popup {
    width: 100% !important;
    background: #00aaff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2) !important;
}

.btn-submit-popup:hover {
    background: #008cff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4) !important;
}

.btn-submit-popup:active { transform: translateY(0) !important; }

/* --- CONFIGURATORE --- */
.form-row { margin-bottom: 15px !important; }

.form-row label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    cursor: default !important;
}

.form-configuratore select, 
.form-configuratore input[type="email"] {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 10px !important;
    border: 1px solid #d2d2d7 !important;
    background: #f5f5f7 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.form-configuratore span.wpcf7-list-item {
    display: inline-block !important;
    margin-right: 10px !important;
    font-size: 13px !important;
}

.popup-content, .popup-content p, .popup-content h2 { cursor: default !important; }

.btn-submit-popup, 
.form-configuratore input[type="checkbox"], 
.form-configuratore input[type="radio"], 
.form-configuratore select,
.btn-preventivo { cursor: pointer !important; }

.form-configuratore input[type="email"], 
.form-configuratore input[type="text"], 
.form-configuratore select {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
}

/* --- SELEZIONE TESTO --- */
::selection { background-color: #00d4ff !important; color: #ffffff !important; }
::-moz-selection { background-color: #00d4ff !important; color: #ffffff !important; }

/* --- BADGE OPENAI FOOTER --- */
.footer-bar .footer-badge-container {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
}

/* --- BRUTALIST BUTTON OPENAI --- */
.brutalist-button.openai {
    display: flex;
    align-items: center;
    width: 240px;
    height: 70px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border: 3px solid #ffffff;
    outline: 3px solid #1a1a1a;
    box-shadow: 8px 8px 0 #10a37f;
    transition: all 0.2s ease-out;
    padding: 0 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.brutalist-button.openai::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, #10a37f, #7ce9d6, #10a37f);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

.brutalist-button.openai:hover::before { opacity: 0.15; }

.brutalist-button.openai:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #10a37f;
}

.brutalist-button.openai:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 #10a37f;
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.openai-logo {
    display: flex;
    align-items: center;
    margin-right: 16px;
    position: relative;
    z-index: 2;
}

.openai-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    transition: transform 0.2s ease-out;
}

.brutalist-button.openai:hover .openai-icon { transform: rotate(-15deg) scale(1.1); }
.brutalist-button.openai:active .openai-icon { transform: rotate(15deg) scale(0.9); }

.openai-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 0 #1a1a1a;
}

.button-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.button-text span:first-child {
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-text span:last-child {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   MEDIA QUERIES MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    .grid-container.grid-parent { display: block !important; }

    .site-content .inside-site-content {
        display: flex !important;
        flex-direction: column !important;
    }

    .site-main,
    .content-area {
        width: 100% !important;
        float: none !important;
    }

    /* Immagini più basse su mobile */
    .post-image,
    .post-thumbnail {
        height: 220px !important;
    }

    /* Sidebar mobile */
    .inside-right-sidebar {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px !important;
        clear: both !important;
    }

    .inside-right-sidebar img,
    .inside-right-sidebar ul.wp-block-latest-posts li img {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    /* Header mobile */
    .inside-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 10px 0 !important;
        gap: 0 !important;
    }

    .site-logo { order: 1 !important; margin-bottom: 5px !important; }

    .site-description, 
    .header-widget .textwidget p {
        order: 2 !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
    }

    .header-widget {
        order: 3 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .header-widget aside, 
    .header-widget .widget { margin: 0 !important; padding: 0 !important; }

    /* Footer subscribe mobile */
    .footer-subscribe-container {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .btn-subscribe-tech {
        order: 1 !important;
        padding: 8px 16px !important;
        font-size: 10px !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .paper-plane-icon { width: 14px !important; height: 14px !important; }

    .header-social-wrapper {
        order: 2 !important;
        margin: 0 !important;
        padding-bottom: 10px !important;
    }

    /* Store PC mobile */
    .pc-card { width: 100%; }
    .pc-card.featured { transform: scale(1); }

    /* Badge OpenAI mobile */
    .footer-bar .footer-badge-container {
        margin-left: 0 !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .brutalist-button.openai {
        width: 200px !important;
        height: 55px !important;
    }

    /* --- NASCONDI ANTEPRIMA ARTICOLO SU MOBILE --- */
        .single .post-image,
        .single .page-header-image-single {
            display: none !important;
        }

}

/* Stile Widget Rubriche Tech */
.widget-rubriche-tech {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #00aaff; /* Richiama il bordo azzurro dei post */
}

.widget-rubriche-tech .widget-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.macro-cat {
    display: block;
    font-weight: 700;
    color: #00aaff;
    margin-top: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.sub-cat {
    list-style: none !important;
    padding-left: 15px !important;
    margin: 5px 0 15px 0 !important;
}

.sub-cat li a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sub-cat li a:hover {
    color: #00d4ff;
    padding-left: 5px;
}





/* 


##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
============================================================
   SOLO PER PAGINA TANIFON TRADING - TEMA VERDE
   ============================================================ 
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
####################################################################################################################################################################################################################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
####################################################################################################################################################################################################################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
*/
/* Logo dedicato per la sezione Trading */
.page-id-947 .site-logo img {
    content: url('/wp-content/themes/generatepress-child/tanifon-trading.png');
}

/* Colori d'accento Verde Elettrico */
.page-id-947 .main-navigation .main-nav ul li:hover > a {
    color: #2ecc71 !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.page-id-947 .main-navigation .main-nav ul li > a::after {
    background-color: #2ecc71;
}

.page-id-947 .wp-block-search__button {
    background-color: #2ecc71 !important;
}

.page-id-947 .wp-block-search__button:hover { 
    background-color: #27ae60 !important; 
}

.page-id-947 .wp-block-search__inside-wrapper:focus-within {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
}

/* Sidebar e Widget Trading */
.page-id-947 .inside-right-sidebar ul.wp-block-latest-posts li {
    border-left: 4px solid #2ecc71 !important;
}

.page-id-947 .inside-right-sidebar ul.wp-block-latest-posts li:hover {
    background: #f0fff4 !important; /* Sfondo verdino chiaro */
}

.page-id-947 .inside-right-sidebar ul.wp-block-archives-list li::before {
    background: #2ecc71;
}

.page-id-947 .inside-right-sidebar ul.wp-block-categories-list li:hover {
    background: #2ecc71 !important;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3) !important;
}

.page-id-947 .inside-right-sidebar h2.wp-block-heading,
.page-id-947 .widget-rubriche-tech,
.page-id-947 .widget-rubriche-tech .widget-title {
    border-color: #2ecc71 !important;
}

.page-id-947 .macro-cat {
    color: #2ecc71;
}

/* Newsletter e Popup Trading */
.page-id-947 .btn-subscribe-tech {
    border-color: #2ecc71 !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2) !important;
}

.page-id-947 .btn-subscribe-tech:hover {
    background: #2ecc71 !important;
}

.page-id-947 .newsletter-tech-box .wpcf7-submit,
.page-id-947 .btn-submit-popup {
    background: #2ecc71 !important;
}

.page-id-947 .newsletter-tech-box .wpcf7-submit:hover,
.page-id-947 .btn-submit-popup:hover {
    background: #27ae60 !important;
}

/* Store e Selezione */
.page-id-947 .pc-card:hover,
.page-id-947 .pc-card.featured {
    border-color: #2ecc71 !important;
}

.page-id-947 .pc-specs li::before {
    color: #2ecc71;
}

.page-id-947 ::selection { background-color: #2ecc71 !important; }

/* --- TICKER AZIONARIO PERSONALIZZATO --- */
.page-id-947 .tradingview-ticker-container {
    width: 100%;
    background: #000000; /* Nero profondo */
    border-bottom: 2px solid #2ecc71; /* Linea verde elettrico */
    overflow: hidden;
    position: relative;
    z-index: 99;
}

/* Modifica i testi del widget per renderli più "Coding Style" */
.page-id-947 .tradingview-widget-container {
    filter: sepia(100%) saturate(300%) hue-rotate(70deg) brightness(1.2); /* Forza i colori del widget sul verde coding */
}

/* Responsive per cellulari */
@media (max-width: 768px) {
    .page-id-947 .tradingview-ticker-container {
        height: 46px; /* Altezza ottimizzata per mobile */
    }
}
/* 


##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
============================================================
   SOLO PER PAGINA TANIFON BANDI
   ============================================================ 
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
####################################################################################################################################################################################################################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
####################################################################################################################################################################################################################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
##########################################################################################################################################################################################
*/

/* ============================================================
   PERSONALIZZAZIONE PAGINA BANDI E INCENTIVI (ID 1216)
   Colore Principale: Violetto #cd00cc
   ============================================================ */

/* Logo dedicato per la sezione Bandi */
.page-id-1216 .site-logo img {
    /* Sostituisci il path qui sotto con il logo dedicato se necessario */
    content: url('/wp-content/themes/generatepress-child/tanifon-bandi.png');
}

/* Colori d'accento Violetto */
.page-id-1216 .main-navigation .main-nav ul li:hover > a {
    color: #cd00cc !important;
    text-shadow: 0 0 8px rgba(205, 0, 204, 0.5);
}

.page-id-1216 .main-navigation .main-nav ul li > a::after {
    background-color: #cd00cc;
}

.page-id-1216 .wp-block-search__button {
    background-color: #cd00cc !important;
}

.page-id-1216 .wp-block-search__button:hover { 
    background-color: #a300a2 !important; /* Un tono più scuro per l'hover */
}

.page-id-1216 .wp-block-search__inside-wrapper:focus-within {
    border-color: #cd00cc !important;
    box-shadow: 0 0 0 3px rgba(205, 0, 204, 0.2) !important;
}

/* Sidebar e Widget */
.page-id-1216 .inside-right-sidebar ul.wp-block-latest-posts li {
    border-left: 4px solid #cd00cc !important;
}

.page-id-1216 .inside-right-sidebar ul.wp-block-latest-posts li:hover {
    background: #fdf0ff !important; /* Sfondo violetto chiarissimo */
}

.page-id-1216 .inside-right-sidebar ul.wp-block-archives-list li::before {
    background: #cd00cc;
}

.page-id-1216 .inside-right-sidebar ul.wp-block-categories-list li:hover {
    background: #cd00cc !important;
    box-shadow: 0 4px 10px rgba(205, 0, 204, 0.3) !important;
}

.page-id-1216 .inside-right-sidebar h2.wp-block-heading,
.page-id-1216 .widget-rubriche-tech,
.page-id-1216 .widget-rubriche-tech .widget-title {
    border-color: #cd00cc !important;
}

.page-id-1216 .macro-cat {
    color: #cd00cc;
}

/* Newsletter e Popup */
.page-id-1216 .btn-subscribe-tech {
    border-color: #cd00cc !important;
    box-shadow: 0 4px 15px rgba(205, 0, 204, 0.2) !important;
}

.page-id-1216 .btn-subscribe-tech:hover {
    background: #cd00cc !important;
}

.page-id-1216 .newsletter-tech-box .wpcf7-submit,
.page-id-1216 .btn-submit-popup {
    background: #cd00cc !important;
}

.page-id-1216 .newsletter-tech-box .wpcf7-submit:hover,
.page-id-1216 .btn-submit-popup:hover {
    background: #a300a2 !important;
}

/* Store e Selezione */
.page-id-1216 .pc-card:hover,
.page-id-1216 .pc-card.featured {
    border-color: #cd00cc !important;
}

.page-id-1216 .pc-specs li::before {
    color: #cd00cc;
}

.page-id-1216 ::selection { 
    background-color: #cd00cc !important; 
    color: #ffffff;
}

/* --- TICKER / ELEMENTI GRAFICI --- */
.page-id-1216 .tradingview-ticker-container {
    width: 100%;
    background: #000000;
    border-bottom: 2px solid #cd00cc;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

/* Modifica i colori del widget TradingView per virare al Violetto */
.page-id-1216 .tradingview-widget-container {
    filter: hue-rotate(250deg) saturate(150%) brightness(1.1);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .page-id-1216 .tradingview-ticker-container {
        height: 46px;
    }
}
