/*
Theme Name: Offerte SRL Child
Template: syrus
Description: Tema child di Syrus per Offerte SRL
Version: 1.0.0
Author: Cristiano De Luca
Text Domain: offerte-srl-child
*/

@import url("../syrus/style.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* TIM Preferred Partner Navigation Styles */
:root {
    --tim-blue: #122ac2;
}

/* nav.tim-navbar (not just .tim-navbar) so position/z-index beat Bootstrap's
   later-loaded `.navbar { position: relative }` without needing !important. */
nav.tim-navbar {
    /* Hardcoded so it stays #122AC2 even where home.css overrides --tim-blue */
    background-color: #122AC2 !important;
    padding: 0;
    min-height: 60px;
    border: none;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    /* Sticky navigation */
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.2s ease;
}

/* Light shadow once the page is scrolled (toggled by assets/js/navbar.js) */
.tim-navbar.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
}

/* Keep the sticky bar below the WP admin bar for logged-in users */
.admin-bar .tim-navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .tim-navbar {
        top: 46px;
    }
}

.tim-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.tim-logo {
    height: 36px;
    width: auto;
}

.tim-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.offerte-srl-text {
    color: white;
    font-size: 15px;
    font-weight: 400;
    margin-left: 8px;
}

.tim-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tim-nav-link {
    color: white !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 400;
    padding: 0;
    transition: opacity 0.2s ease;
}

.tim-nav-link:hover {
    color: white !important;
    opacity: 0.8;
    text-decoration: none !important;
}

.tim-navbar .container {
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Right-side group: company logo (and back link on offer pages).
   Absolutely positioned so hidden navbar elements (toggler/collapse)
   can't interfere with the flex layout. */
.tim-navbar .navbar-right {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tim-navbar .navbar-company-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Below lg: smaller logos; hamburger pinned just left of the company logo */
@media (max-width: 991.98px) {
    .tim-navbar .navbar-brand img {
        height: 30px;
    }

    .tim-navbar .navbar-company-logo {
        height: 30px;
    }

    .tim-navbar .navbar-toggler {
        position: absolute;
        right: 168px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
}

/* Loghi più compatti e header con più respiro verticale.
   Selettori a 3 classi (nav.tim-navbar.navbar …) così vincono sulle regole
   base qui sopra senza !important. Caricati site-wide per uniformare la
   topnav su tutte le pagine (prima vivevano in offerte.css). */
nav.tim-navbar.navbar .navbar-brand > img,
nav.tim-navbar.navbar .navbar-company-logo {
    height: 26px;
    width: auto;
}

nav.tim-navbar.navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

nav.tim-navbar.navbar .navbar-brand {
    margin-right: 12px;
}

nav.tim-navbar.navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Da tablet in su i loghi tornano a piena dimensione (26px solo su mobile). */
@media (min-width: 768px) {
    nav.tim-navbar.navbar .navbar-brand > img,
    nav.tim-navbar.navbar .navbar-company-logo {
        height: 40px;
    }
}

/* TIM Footer Styles */
.tim-footer {
    background-color: #00319a;
    color: white;
    font-family: 'Inter', sans-serif;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.tim-footer-content {
    padding-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-brand-info {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    color: white;
    opacity: 0.85;
    text-decoration: none;
}

/* Voci legali rese come <button> (aprono il pannello Cookiebot, non navigano):
   azzera il look nativo del bottone così restano identiche agli <a> del footer. */
.footer-link-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.footer-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-social-link i {
    font-size: 18px;
}

.footer-company-logo {
    height: 34px;
    width: auto;
}

/* Brand column: site logo stacked above the TIM partner logo */
.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-separator {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1.5rem 0;
}

.footer-bottom {
    padding-top: 1rem;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links .footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links .footer-link:hover {
    color: white;
    opacity: 1;
}

@media (max-width: 768px) {
    .tim-footer {
        padding-top: 2rem;
    }

    /* Center every column: text, links, logos and icon rows */
    .tim-footer-content {
        text-align: center;
    }

    .tim-footer-content .d-flex {
        justify-content: center;
    }

    .footer-logos {
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .footer-social {
        margin-top: 1rem;
    }
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    height: calc(100vh - 60px);
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/img/hero.webp') center center/cover no-repeat;
    z-index: 1;
}

/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 49, 154, 0.85) 0%,
        rgba(30, 58, 138, 0.75) 45%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
} */

.hero-banner .container {
    position: relative;
    z-index: 3;
    height: 100%;
}

.hero-content {
    max-width: 580px;
    color: white;
    animation: heroFadeInUp 1s ease-out;
}

.hero-overline {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.hero-highlight {
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
    color: #1e3a8a;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Floating Cards */
.hero-cards {
    position: absolute;
    bottom: 8%;
    right: 5%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-card-1 {
    animation: heroCardSlide 1s ease-out 0.5s both;
}

.hero-card-2 {
    animation: heroCardSlide 1s ease-out 0.7s both;
}

.hero-card-3 {
    animation: heroCardSlide 1s ease-out 0.9s both;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.card-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 0.25rem 0;
}

.card-price {
    font-size: 0.875rem;
    color: #f59e0b;
    font-weight: 600;
}

/* Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-cards {
        bottom: 5%;
        right: 3%;
    }

    .hero-card {
        min-width: 200px;
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-cards {
        position: static;
        margin-top: 3rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-card {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 500px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }

    .hero-cards {
        margin-top: 2rem;
        gap: 0.75rem;
    }

    .hero-card {
        min-width: 160px;
        padding: 0.875rem;
        flex: 1;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cards {
        flex-direction: column;
    }
}

/* ===== Default page template (page.php) ===== */
.page-hero {
    background: linear-gradient(135deg, #122ac2 0%, #00319a 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.page-hero-title {
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0;
}

.page-hero-sub {
    margin: 1rem 0 0;
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.page-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.page-body {
    background: #f5f8fc;
    padding: 3rem 0 4rem;
}

.page-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(18, 42, 194, 0.08);
    padding: 2.5rem 3rem;
}

.page-content {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #2b2f38;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content > *:last-child {
    margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 700;
    color: #122ac2;
    margin: 2rem 0 0.75rem;
    line-height: 1.25;
}

.page-content h2 { font-size: 1.6rem; }
.page-content h3 { font-size: 1.3rem; }
.page-content h4 { font-size: 1.1rem; }

.page-content p { margin: 0 0 1.1rem; }

.page-content a {
    color: #122ac2;
    text-decoration: underline;
}

.page-content a:hover {
    color: #00319a;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid #122ac2;
    background: #f5f8fc;
    color: #444;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
}

.page-content th,
.page-content td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.page-content th {
    background: #f5f8fc;
    font-weight: 600;
}

.page-pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-pagination a,
.page-pagination > span {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: #f0f3fb;
    color: #122ac2;
    text-decoration: none;
}

@media (max-width: 576px) {
    .page-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .page-hero {
        padding: 2.5rem 0 2rem;
    }
}

/* ===== Breadcrumb (Yoast) ===== */
.offerta-breadcrumb,
.landing-breadcrumb {
    font-size: 0.85rem;
    padding: 0.75rem 0;
    color: #6b7280;
    text-align: center;
}

.landing-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.offerta-breadcrumb a,
.landing-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.offerta-breadcrumb a:hover,
.landing-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== FAQ block (template-parts/faq.php) ===== */
.faq-section {
    padding: 2.5rem 0 3.5rem;
    background: #f5f8fc;
}

.faq-title {
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 900;
    color: #182a79;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0 0 1.75rem;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 1.25rem;
}

.faq-question {
    cursor: pointer;
    font-weight: 700;
    color: #122ac2;
    padding: 1rem 0;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    float: right;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
}

.faq-item[open] .faq-question::after { content: '–'; }

.faq-answer {
    padding: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
}

/* FAQ page final CTA */
.faq-cta {
    background: #fff;
    padding: 3rem 0 5rem;
}

.faq-cta-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.faq-cta-head h2 {
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #182a79;
    margin: 0 0 0.6rem;
}

.faq-cta-head p {
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
}

.faq-cta-form {
    max-width: 480px;
    margin: 0 auto;
}