/* ========================================
   IVS Modern Base CSS (Gen 3)
   
   PURPOSE: Core shared styles for ALL modern pages (Page 5+)
   EXTRACTED FROM: global-tailwind.css (Gen 2)
   GOAL: 100% visual consistency with Gen 2 pages
   
   DO NOT MODIFY: This is a frozen extraction from Gen 2
   FOR NEW PAGES: Create page-specific CSS in css/pages/
   
   TABLE OF CONTENTS:
   1. Google Fonts Import
   2. CSS Variables (Design Tokens)
   3. Shared Typography Base
   4. Shared Components
   5. Global Hero Slider
   6. Utility Classes
   ======================================== */

/* ========================================
   1. GOOGLE FONTS IMPORT
   Warm Luxury Pairing - Page Content Only
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

/* ========================================
   2. CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
    /* Colors */
    --color-primary: #00a652;
    --color-dark: #1a1a1a;
    --color-dark-alt: #2a2a2a;
    --color-text: #2c2c2c;
    --color-text-light: #4b5563;
    --color-text-muted: #6b7280;
    --color-bg-light: #ffffff;
    --color-bg-gray: #f3f4f6;
    --color-border: rgba(0, 0, 0, 0.08);
    
    /* Border Radius - ALL components use square corners */
    --radius-none: 0;
    
    /* Spacing */
    --section-padding: 6rem;
    --section-padding-mobile: 4rem;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;
    
    /* Transitions */
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s ease;
}

/* ========================================
   3. SHARED TYPOGRAPHY BASE
   Applied to: ALL modern pages
   ======================================== */

/* --- Base Body Text Font Family --- */
main.modernpage,
main.modernpage p,
main.modernpage span,
main.modernpage div,
main.modernpage li,
main.modernpage a,
main.modernpage button,
main.modernpage label,
main.modernpage input,
main.modernpage textarea,
main.modernpage select {
    font-family: var(--font-body) !important;
    font-weight: 400;
    line-height: 1.75;
}

/* --- Headings Font Family --- */
main.modernpage h1,
main.modernpage h2,
main.modernpage h3,
main.modernpage h4,
main.modernpage h5,
main.modernpage h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* --- Base Styles & Box Sizing --- */
main.modernpage,
main.modernpage * {
    box-sizing: border-box;
}

/* --- Buttons and CTAs --- */
main.modernpage button,
main.modernpage .btn,
main.modernpage .btn-success {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-none);
}

/* ========================================
   4. SHARED COMPONENTS
   ======================================== */

/* --- Section Title --- */
main.modernpage .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

main.modernpage .section-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

main.modernpage .section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* --- Section Subtitle (shared pattern) --- */
main.modernpage .section-subtitle {
    font-family: var(--font-body) !important;
    font-size: 1.125rem;
    color: #6b7280;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.75;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Section Tag Text (shared pattern) --- */
main.modernpage .section-tag-text {
    margin-bottom: 1rem;
    text-align: center;
}

main.modernpage .section-tag-text span {
    display: inline-block;
    font-family: var(--font-heading) !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 0;
}

/* --- Title Divider (shared pattern) --- */
main.modernpage .title-divider {
    width: 80px;
    height: 3px;
    background-color: #00a652;
    margin: 0 auto 2rem;
}

/* --- Modern Tabs (shared pattern) --- */
main.modernpage .modern-tabs {
    width: 100%;
}

main.modernpage .modern-tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    margin: 0 0 2rem;
}

main.modernpage .modern-tab {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.4rem 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

main.modernpage .modern-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

main.modernpage .modern-tab.is-active::after {
    transform: scaleX(1);
}

main.modernpage .modern-tab:hover::after,
main.modernpage .modern-tab:focus-visible::after {
    transform: scaleX(1);
}

main.modernpage .modern-tab:focus,
main.modernpage .modern-tab:focus-visible,
main.modernpage .modern-tab:active {
    outline: none !important;
    box-shadow: none !important;
}

main.modernpage .modern-tab::-moz-focus-inner {
    border: 0;
}

main.modernpage .modern-tabpanel[hidden] {
    display: none !important;
}

/* --- Shared Utility Classes --- */
main.modernpage .spacebox {
    padding: 4rem 0;
}

/* --- Rotating Logo Component --- */
main.modernpage .rotating-logo-container {
    text-align: center;
    padding: 1rem 0 2rem 0;
    perspective: 1000px;
}

main.modernpage .rotating-logo {
    width: 80px;
    height: auto;
    display: inline-block;
    animation: coinFlip 12s ease-in-out infinite;
}

@keyframes coinFlip {
    0% {
        transform: rotateY(0deg);
    }
    41.67% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(720deg);
    }
    58.33% {
        transform: rotateY(720deg);
    }
    100% {
        transform: rotateY(720deg);
    }
}

/* --- Image Box Component --- */
main.modernpage .imgbox {
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

main.modernpage .imgbox:hover {
    transform: scale(1.05);
}

main.modernpage .imgbox img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

main.modernpage .imgbox p {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.02em;
}

/* --- Service Box Component --- */
main.modernpage .serviceboxbdr {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

main.modernpage .serviceboxbdr:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

main.modernpage .serviceboxbdr img.img-top {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 0;
}

main.modernpage .serviceboxbdr h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

main.modernpage .serviceboxbdr p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

main.modernpage .serviceboxbdr a {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

main.modernpage .serviceboxbdr a:hover {
    background-color: #1d4ed8;
}

/* --- Image Text Box Component --- */
main.modernpage .imgtextbox {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

main.modernpage .imgtextbox img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

main.modernpage .imgtextbox h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

main.modernpage .imgtextbox ul {
    padding: 0 1.5rem 1rem;
    list-style: none;
}

main.modernpage .imgtextbox ul li {
    color: #374151;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

main.modernpage .imgtextbox ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

main.modernpage .imgtextbox .veicoli {
    background-color: #f9fafb;
    padding: 1.5rem;
}

main.modernpage .imgtextbox .veicoli ul li {
    margin-bottom: 0.5rem;
}

/* --- FAQ Section --- */
main.modernpage .faq-transportation-section,
main.modernpage .faq-section {
    background-color: #ffffff;
    padding: 6rem 0;
    position: relative;
}

main.modernpage .faq-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

main.modernpage .faq-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

main.modernpage .faq-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    font-weight: 400;
}

main.modernpage .faq-list {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

main.modernpage .faq-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

main.modernpage .faq-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

main.modernpage .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

main.modernpage .faq-question:hover {
    background-color: rgba(0, 166, 82, 0.05);
}

main.modernpage .faq-question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.4;
    letter-spacing: -0.01em;
    padding-right: 1.5rem;
}

main.modernpage .faq-icon {
    width: 28px;
    height: 28px;
    color: #00a652;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

main.modernpage .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

main.modernpage .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

main.modernpage .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem;
}

main.modernpage .faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    font-weight: 400;
    margin: 0;
}

main.modernpage .faq-cta {
    text-align: center;
    padding-top: 2rem;
}

main.modernpage .faq-cta-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

main.modernpage .faq-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #2c2c2c;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #2c2c2c;
}

main.modernpage .faq-cta-button:hover {
    background-color: #00a652;
    border-color: #00a652;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 166, 82, 0.3);
}

/* Responsive (FAQ) */
@media (max-width: 768px) {
    main.modernpage .faq-transportation-section,
    main.modernpage .faq-section {
        padding: 4rem 0;
    }

    main.modernpage .faq-main-title {
        font-size: 2rem;
    }

    main.modernpage .faq-subtitle {
        font-size: 1rem;
    }

    main.modernpage .faq-question {
        padding: 1.25rem 1.5rem;
    }

    main.modernpage .faq-question-text {
        font-size: 1.0625rem;
    }

    main.modernpage .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }

    main.modernpage .faq-cta-text {
        font-size: 1.25rem;
    }
}

/* --- Container Responsive --- */
main.modernpage .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    main.modernpage .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    main.modernpage .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    main.modernpage .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    main.modernpage .container {
        max-width: 1280px;
    }
}

/* ========================================
   5. GLOBAL HERO SLIDER COMPONENT
   Reusable across ALL modern pages
   ======================================== */

/* --- Base Hero Slider Structure --- */
main .hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

main .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    transform: translateZ(0);
    will-change: opacity, visibility;
}

main .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

main .hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main .hero-slide video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), transparent);
}

main .hero-content {
    position: relative;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

main .hero-text {
    color: #ffffff;
    max-width: 42rem;
    transform: translateZ(0);
    will-change: transform;
}

main .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
    main .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    main .hero-title {
        font-size: 4.5rem;
    }
}

main .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #e5e7eb;
    font-style: normal;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 2px 3px 6px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    main .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    main .hero-subtitle {
        font-size: 1.875rem;
    }
}

main .hero-description {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
}

main .hero-description svg {
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.8));
}

main .hero-cta {
    display: inline-block;
    background-color: #ffffff;
    color: #111827;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

main .hero-cta:hover {
    background-color: #f3f4f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* --- Hero Navigation --- */
main .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

main .hero-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

main .hero-nav-prev {
    left: 2rem;
}

main .hero-nav-next {
    right: 2rem;
}

/* --- Hero Indicators --- */
main .hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.75rem;
}

main .hero-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

main .hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

main .hero-indicator.active {
    background-color: #ffffff;
    width: 2rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    main .hero-slider {
        min-height: 500px;
        height: 70vh;
    }

    main .hero-slide-image,
    main .hero-slide video {
        object-fit: cover;
        object-position: center;
    }

    main .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    main .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    main .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    main .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.75rem;
    }

    main .hero-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    main .hero-nav-prev {
        left: 1rem;
    }

    main .hero-nav-next {
        right: 1rem;
    }

    main .hero-indicators {
        bottom: 1rem;
    }
}

/* ========================================
   6. UTILITY CLASSES
   ======================================== */

/* --- Breadcrumb Component --- */
main.modernpage .breadcome {
    background-color: #f3f4f6;
    padding: 2rem 0;
}

main.modernpage .pagehadding {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

main.modernpage .breadcomelist {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    list-style: none;
    padding: 0;
    margin: 0;
}

main.modernpage .breadcomelist li {
    display: flex;
    align-items: center;
}

main.modernpage .breadcomelist li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #9ca3af;
}

main.modernpage .breadcomelist a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

main.modernpage .breadcomelist a:hover {
    color: #1e40af;
}

/* --- Common Button Styles --- */
main.modernpage .btn-success {
    background-color: #00a652;
    color: #ffffff;
    padding: 0.875rem 2.5rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

main.modernpage .btn-success:hover {
    background-color: #00a652;
    filter: brightness(0.92);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Clearfix --- */
main.modernpage .cb {
    clear: both;
}

main.modernpage .clear-both {
    clear: both;
}
