/* ========================================
   XZT Padel - Global Styles
   Officine D'Amico Style Clone
   ======================================== */

/* === Astra Override: Break out of container === */
.site-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

.site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Make sections truly full-width */
.xzt-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.xzt-wrapper > section {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override Astra's default heading/content styles inside our sections */
.xzt-wrapper h1,
.xzt-wrapper h2,
.xzt-wrapper h3,
.xzt-wrapper h4,
.xzt-wrapper h5,
.xzt-wrapper h6 {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
}

.xzt-wrapper a {
    text-decoration: none;
}

.xzt-wrapper {
    width: 100%;
    overflow: hidden;
}

/* === CSS Variables === */
:root {
    --xzt-primary: #1a365d;
    --xzt-primary-light: #2c5282;
    --xzt-primary-dark: #0f2440;
    --xzt-accent: #c9a227;
    --xzt-text: #2d3748;
    --xzt-text-light: #4a5568;
    --xzt-bg: #ffffff;
    --xzt-bg-light: #f7fafc;
    --xzt-bg-dark: #edf2f7;
    --xzt-border: #e2e8f0;
    --xzt-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --xzt-shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --xzt-radius: 8px;
    --xzt-transition: all 0.3s ease;
    --xzt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --xzt-container: 1280px;
}

/* === Reset === */
body {
    font-family: var(--xzt-font);
    color: var(--xzt-text);
    line-height: 1.6;
}

/* ========================================
   HERO SECTION
   Full-width dark gradient hero
   ======================================== */
.xzt-hero {
    position: relative;
    width: 100%;
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--xzt-primary-dark) 0%, var(--xzt-primary) 50%, var(--xzt-primary-light) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.xzt-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.xzt-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.xzt-hero h1 {
    font-size: 56px !important;
    font-weight: 700 !important;
    margin-bottom: 28px !important;
    letter-spacing: -1.5px;
    line-height: 1.1 !important;
    color: #fff !important;
}

.xzt-hero p {
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.88;
    max-width: 720px;
    margin: 0 auto;
}

/* ========================================
   SECTION BASE
   Full-width sections with inner container
   ======================================== */
.xzt-section {
    width: 100%;
    padding: 100px 0;
    background: var(--xzt-bg-light);
}

.xzt-section-white {
    background: #fff;
}

.xzt-section-dark {
    background: var(--xzt-primary);
    color: #fff;
}

/* Inner container for content centering */
.xzt-container {
    width: 100%;
    max-width: var(--xzt-container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   SECTION TITLE
   ======================================== */
.xzt-section-title {
    text-align: center;
    margin-bottom: 70px;
}

.xzt-section-title h2 {
    font-size: 44px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px;
}

.xzt-section-title p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--xzt-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   SOLUTION / PRODUCT CARDS (3-col grid)
   Large image cards with overlay label
   ======================================== */
.xzt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.xzt-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.xzt-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card with image and overlay label */
.xzt-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--xzt-transition);
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.xzt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    color: inherit !important;
}

.xzt-card-img {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.xzt-card:hover .xzt-card-img {
    transform: scale(1.03);
}

.xzt-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(26,54,93,0.92) 100%);
    color: #fff;
    z-index: 2;
}

.xzt-card-label h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #fff !important;
}

/* ========================================
   SERVICE CARDS (image top, text bottom)
   ======================================== */
.xzt-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--xzt-transition);
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.xzt-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    color: inherit !important;
}

.xzt-service-card-img {
    height: 260px;
    background-size: cover;
    background-position: center;
}

.xzt-service-card-body {
    padding: 36px 28px;
}

.xzt-service-card-body h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 14px !important;
}

.xzt-service-card-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--xzt-text-light);
    margin-bottom: 24px;
}

/* ========================================
   PROJECT CARDS (full image with overlay)
   ======================================== */
.xzt-project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: var(--xzt-transition);
}

.xzt-project-card:hover {
    transform: translateY(-6px);
    color: inherit !important;
}

.xzt-project-card-img {
    height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.xzt-project-card:hover .xzt-project-card-img {
    transform: scale(1.03);
}

.xzt-project-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(26,54,93,0.85) 100%);
}

.xzt-project-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    color: #fff;
    z-index: 1;
}

.xzt-project-card-info h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #fff !important;
}

.xzt-project-card-info span {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FEATURED BLOCK (Alternating Image + Text)
   Full-width, 50/50 split
   ======================================== */
.xzt-featured {
    display: flex;
    align-items: stretch;
    min-height: 560px;
    background: #fff;
    width: 100%;
}

.xzt-featured.reverse {
    flex-direction: row-reverse;
}

.xzt-featured-img {
    flex: 1;
    min-height: 560px;
    background-size: cover;
    background-position: center;
}

.xzt-featured-body {
    flex: 1;
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xzt-featured-body h2 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
}

.xzt-featured-body p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--xzt-text-light);
    margin-bottom: 36px;
}

/* ========================================
   BUTTONS
   ======================================== */
.xzt-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: var(--xzt-primary);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--xzt-transition);
    border: none;
    cursor: pointer;
}

.xzt-btn:hover {
    background: var(--xzt-primary-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,54,93,0.3);
}

.xzt-btn::after {
    content: '\2192';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.xzt-btn:hover::after {
    transform: translateX(4px);
}

.xzt-btn-outline {
    background: transparent;
    border: 2px solid var(--xzt-primary);
    color: var(--xzt-primary) !important;
}

.xzt-btn-outline:hover {
    background: var(--xzt-primary) !important;
    color: #fff !important;
}

.xzt-btn-white {
    background: #fff;
    color: var(--xzt-primary) !important;
}

.xzt-btn-white:hover {
    background: var(--xzt-bg-light) !important;
    color: var(--xzt-primary) !important;
}

/* Center button wrapper */
.xzt-btn-center {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   CTA BANNER
   Full-width dark gradient banner
   ======================================== */
.xzt-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--xzt-primary-dark) 0%, var(--xzt-primary) 50%, var(--xzt-primary-light) 100%);
    padding: 100px 40px;
    text-align: center;
    color: #fff;
}

.xzt-cta h3 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #fff !important;
}

.xzt-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   ABOUT BLOCK (Home page - image + text)
   ======================================== */
.xzt-about-block {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: var(--xzt-container);
    margin: 0 auto;
}

.xzt-about-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.xzt-about-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.xzt-about-text {
    flex: 1;
}

.xzt-about-text h2 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 24px !important;
}

.xzt-about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--xzt-text-light);
    margin-bottom: 32px;
}

/* ========================================
   TIMELINE (About page)
   ======================================== */
.xzt-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

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

.xzt-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
}

.xzt-timeline-item:nth-child(odd) {
    flex-direction: row;
}

.xzt-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.xzt-timeline-content {
    flex: 1;
    padding: 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.xzt-timeline-item:nth-child(odd) .xzt-timeline-content {
    margin-right: 60px;
    text-align: right;
}

.xzt-timeline-item:nth-child(even) .xzt-timeline-content {
    margin-left: 60px;
}

.xzt-timeline-img {
    flex: 1;
}

.xzt-timeline-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.xzt-timeline-year {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--xzt-primary);
    background: rgba(26,54,93,0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.xzt-timeline-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 10px !important;
}

.xzt-timeline-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--xzt-text-light);
    margin: 0;
}

.xzt-timeline-dot {
    position: absolute;
    left: 50%;
    top: 40px;
    width: 16px;
    height: 16px;
    background: var(--xzt-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--xzt-bg-light);
    z-index: 1;
}

/* ========================================
   METHOD STEPS (4-col grid)
   ======================================== */
.xzt-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--xzt-container);
    margin: 0 auto;
}

.xzt-method-card {
    text-align: center;
    padding: 48px 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--xzt-transition);
}

.xzt-method-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.xzt-method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(26,54,93,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--xzt-primary);
}

.xzt-method-card h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--xzt-primary) !important;
    margin-bottom: 14px !important;
}

.xzt-method-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--xzt-text-light);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.xzt-contact-form {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.xzt-contact-form .form-group {
    margin-bottom: 28px;
}

.xzt-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--xzt-text);
    margin-bottom: 8px;
}

.xzt-contact-form input,
.xzt-contact-form textarea,
.xzt-contact-form select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--xzt-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--xzt-font);
    transition: var(--xzt-transition);
    box-sizing: border-box;
}

.xzt-contact-form input:focus,
.xzt-contact-form textarea:focus,
.xzt-contact-form select:focus {
    outline: none;
    border-color: var(--xzt-primary);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.xzt-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.xzt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .xzt-hero { padding: 120px 0 80px; }
    .xzt-hero h1 { font-size: 42px !important; }

    .xzt-featured { flex-direction: column !important; }
    .xzt-featured.reverse { flex-direction: column !important; }
    .xzt-featured-img { min-height: 380px; }
    .xzt-featured-body { padding: 50px 40px; }
    .xzt-featured-body h2 { font-size: 32px !important; }

    .xzt-grid { grid-template-columns: repeat(2, 1fr); }
    .xzt-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .xzt-method-grid { grid-template-columns: repeat(2, 1fr); }

    .xzt-timeline::before { left: 30px; }
    .xzt-timeline-item,
    .xzt-timeline-item:nth-child(even) { flex-direction: column !important; }
    .xzt-timeline-item:nth-child(odd) .xzt-timeline-content { margin-right: 0; text-align: left; }
    .xzt-timeline-item:nth-child(even) .xzt-timeline-content { margin-left: 0; }
    .xzt-timeline-dot { left: 30px; }

    .xzt-about-block { flex-direction: column; gap: 40px; }

    .xzt-section { padding: 70px 0; }
    .xzt-cta { padding: 70px 40px; }
}

@media (max-width: 768px) {
    .xzt-hero h1 { font-size: 34px !important; }
    .xzt-hero p { font-size: 17px; }

    .xzt-grid, .xzt-grid-2, .xzt-grid-4 { grid-template-columns: 1fr; }
    .xzt-method-grid { grid-template-columns: 1fr; }

    .xzt-featured-body { padding: 40px 24px; }
    .xzt-featured-body h2 { font-size: 28px !important; }

    .xzt-section-title h2 { font-size: 32px !important; }
    .xzt-section-title { margin-bottom: 40px; }

    .xzt-form-row { grid-template-columns: 1fr; }
    .xzt-contact-form { padding: 30px 20px; }

    .xzt-card-img { height: 240px; }
    .xzt-project-card-img { height: 260px; }

    .xzt-cta h3 { font-size: 28px !important; }
}

/* ============================================
   PAGINATION
   ============================================ */
.xzt-pagination {
    margin: 60px auto 0;
    padding: 0 20px;
    text-align: center;
}

.xzt-pagination-inner {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.xzt-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--xzt-primary, #1a365d);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
}

.xzt-pagination-btn:hover:not(.xzt-disabled) {
    background: var(--xzt-primary, #1a365d);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.xzt-pagination-btn.xzt-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.xzt-pagination-info {
    font-size: 14px;
    color: var(--xzt-text-light, #6b7280);
    padding: 0 10px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.xzt-current-page {
    font-weight: 700;
    color: var(--xzt-primary, #1a365d);
}

.xzt-total-pages {
    font-weight: 600;
}

@media (max-width: 768px) {
    .xzt-pagination-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .xzt-pagination-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .xzt-pagination-info {
        width: 100%;
        border: none;
        padding: 8px 0 0;
        order: 3;
    }
}
