/*
Theme Name: Italian Van Lines
Theme URI: https://italianvanlines.it
Author: Italian Van Lines
Author URI: https://italianvanlines.it
Description: Tema personalizzato per Italian Van Lines - Rete nazionale di imprese di traslochi, logistica e trasporti. Sviluppato con Tailwind CSS e ACF Pro.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-ivls
Tags: custom-logo, custom-menu, featured-images, theme-options, translation-ready

Italian Van Lines Theme
© 2026 Italian Van Lines - Tutti i diritti riservati.
*/

/* ==========================================================================
   Theme Custom Styles
   ========================================================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    font-family: 'Inter', sans-serif;
}

.font-heading,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #5b6b7a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5a68;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

/* Dropdown Menu Animation */
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    transform: translateY(-10px);
}

/* Mobile Accordion */
.mobile-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-accordion.active .accordion-content {
    max-height: 500px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-gradient {
    background: linear-gradient(135deg, rgba(91, 107, 122, 0.85) 0%, rgba(249, 174, 0, 0.7) 100%);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-btn:hover::before {
    width: 300%;
    height: 300%;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon {
    transition: transform 0.4s ease;
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Partner Map Styles
   ========================================================================== */

.partner-list {
    columns: 2;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .partner-list {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .partner-list {
        columns: 4;
    }
}

.partner-list .region-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #5b6b7a, #f9ae00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   ACF Flexible Content Sections
   ========================================================================== */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* Alignment */
.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Images */
.wp-post-image {
    width: 100%;
    height: auto;
}

/* Admin Bar Adjustment */
body.admin-bar header#main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header#main-header {
        top: 46px;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
