/* ============================================================
   AZIENDA / CHI SIAMO — PHP nativo (no Elementor)
   Prefisso: tf-az-*
   v3.3.0
   ============================================================ */

.tf-az-page {
    --tf-az-blue: #0077b6;
    --tf-az-blue-dark: #023e8a;
    --tf-az-text: #2d3436;
    --tf-az-text-soft: #5a6c72;
    --tf-az-bg-alt: #f5f7fa;
    --tf-az-border: #e3e8ee;
    --tf-az-section-py: 70px;
    font-family: 'Open Sans', sans-serif;
    color: var(--tf-az-text);
}

.tf-az-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HERO ---------- */
.tf-az-hero {
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.tf-az-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #FFFFFF;
}

.tf-az-breadcrumb {
    font-size: 15px;
    opacity: 0.95;
}

.tf-az-breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.tf-az-breadcrumb a:hover { opacity: 1; }
.tf-az-breadcrumb span { margin: 0 8px; }

/* ---------- INTRO ---------- */
.tf-az-intro {
    padding: var(--tf-az-section-py) 0;
    background: #fff;
}

.tf-az-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.tf-az-intro-media {
    position: relative;
}

.tf-az-intro-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 12px 40px rgba(2, 62, 138, 0.15);
}

.tf-az-intro-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #0077b6, #023e8a);
    color: #fff;
    padding: 22px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(2, 62, 138, 0.3);
}

.tf-az-badge-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.tf-az-badge-label {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.95;
}

.tf-az-intro-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--tf-az-text);
}

.tf-az-intro-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tf-az-text-soft);
    margin: 0 0 16px;
}

.tf-az-intro-text strong { color: var(--tf-az-text); }

.tf-az-quote {
    border-left: 4px solid var(--tf-az-blue);
    background: var(--tf-az-bg-alt);
    padding: 18px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--tf-az-text);
    border-radius: 0 8px 8px 0;
}

/* ---------- STATS BAR ---------- */
.tf-az-stats {
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    padding: 50px 0;
}

.tf-az-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.tf-az-stat-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tf-az-stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- SECTION HEAD (servizi/storia) ---------- */
.tf-az-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.tf-az-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--tf-az-text);
    margin: 0 0 12px;
}

.tf-az-section-sub {
    font-size: 16px;
    color: var(--tf-az-text-soft);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- SERVIZI ---------- */
.tf-az-services {
    padding: var(--tf-az-section-py) 0;
    background: var(--tf-az-bg-alt);
}

.tf-az-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tf-az-service-card {
    background: #fff;
    border: 1px solid var(--tf-az-border);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tf-az-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(2, 62, 138, 0.12);
}

.tf-az-service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077b6, #023e8a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-az-service-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    stroke: currentColor;
    fill: none;
}

.tf-az-service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--tf-az-text);
    margin: 0 0 14px;
}

.tf-az-service-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--tf-az-text-soft);
    margin: 0;
}

/* ---------- TIMELINE STORIA ---------- */
.tf-az-story {
    padding: var(--tf-az-section-py) 0;
    background: #fff;
}

.tf-az-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Linea centrale */
.tf-az-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tf-az-border);
    transform: translateX(-50%);
}

.tf-az-tl-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.tf-az-tl-left {
    left: 0;
    text-align: left;
}

.tf-az-tl-right {
    left: 50%;
    text-align: left;
}

/* Dot sulla linea centrale.
   Il dot è figlio dell'item (largo 50%). Il bordo dell'item che tocca
   la linea centrale è: destro per item-left, sinistro per item-right. */
.tf-az-tl-dot {
    position: absolute;
    top: 38px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tf-az-blue);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--tf-az-blue);
    z-index: 3;
}

/* Item sinistro: bordo destro sulla linea → dot centrato lì */
.tf-az-tl-left .tf-az-tl-dot {
    left: 100%;
    transform: translateX(-50%);
}

/* Item destro: bordo sinistro sulla linea → dot centrato lì */
.tf-az-tl-right .tf-az-tl-dot {
    left: 0;
    transform: translateX(-50%);
}

.tf-az-tl-card {
    background: #fff;
    border: 1px solid var(--tf-az-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tf-az-tl-year {
    display: inline-block;
    background: var(--tf-az-blue);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.tf-az-tl-title {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--tf-az-text);
    margin: 0 0 10px;
}

.tf-az-tl-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--tf-az-text-soft);
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .tf-az-intro-grid { grid-template-columns: 1fr; gap: 50px; }
    .tf-az-intro-badge { right: 20px; bottom: -20px; }
    .tf-az-services-grid { grid-template-columns: repeat(2, 1fr); }
    .tf-az-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 768px) {
    .tf-az-hero { padding: 56px 0; }
    .tf-az-hero-title { font-size: 36px; }
    .tf-az-intro-heading { font-size: 26px; }
    .tf-az-section-title { font-size: 26px; }
    .tf-az-services-grid { grid-template-columns: 1fr; }
    .tf-az-stat-num { font-size: 34px; }

    /* Timeline diventa lineare a sinistra su mobile */
    .tf-az-timeline::before { left: 8px; }
    .tf-az-tl-item {
        width: 100%;
        left: 0 !important;
        padding: 16px 0 16px 40px;
        text-align: left !important;
    }
    .tf-az-tl-left .tf-az-tl-dot,
    .tf-az-tl-right .tf-az-tl-dot {
        left: 0;
        right: auto;
        top: 28px;
    }
}

@media (max-width: 480px) {
    .tf-az-container { padding: 0 16px; }
    .tf-az-hero { padding: 44px 0; }
    .tf-az-hero-title { font-size: 30px; }
    .tf-az-intro-heading { font-size: 23px; }
    .tf-az-section-title { font-size: 23px; }
    .tf-az-intro { padding: 50px 0; }
    .tf-az-services, .tf-az-story { padding: 50px 0; }
    .tf-az-intro-badge {
        right: 16px;
        bottom: -16px;
        padding: 16px 20px;
    }
    .tf-az-badge-num { font-size: 24px; }
    .tf-az-service-card { padding: 28px 22px; }
    .tf-az-stat-num { font-size: 30px; }
    .tf-az-stats-grid { gap: 28px 20px; }
}
