/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Quicksand:wght@300..700&display=swap');

/*.quicksand-<uniquifier> {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.crimson-pro-<uniquifier> {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}*/
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from Quattroruote Professional design */
    --primary-red: #E30613;
    --red-gradient-start: #E30613;
    --red-gradient-end: #8B0000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
}

body {
    font-family: "Quicksand", sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-red);
}
.bk_page{
    background-color: #f5f5f5;
}
/* ===================================
   TYPOGRAPHY RULES
   =================================== */
/* Titoli e sottotitoli con font ANTON */
h1, h2, h3, h4, h5, h6 {
    font-family: "Crimson Pro", serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragrafi con font RALEWAY */
p {
    font-family: "Quicksand", sans-serif;
}
.section-title {   
    text-align: left;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
    padding-left: 24px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 35px;
    background-color: var(--primary-red);
}
 /* ========================================= */
        /* INIZIO STILI LOADING SCREEN */
        /* Da copiare in altre pagine */
        /* ========================================= */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            z-index: 10000;
            transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
        }

        body.loaded #loading-screen {
            transform: translateY(-100%);
        }

        .loader-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .loader-content img {
            max-width: 300px;
            width: 80%;
            opacity: 0.3;
            transition: opacity 4s ease-in-out;
            animation: pulse 3s infinite ease-in-out;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        #loading-percentage {
            margin-top: 30px;
            font-size: 1.5rem;
            font-weight: 500;
            letter-spacing: 2px;
            opacity: 0.3;
            transition: opacity 4s ease-in-out;
        }

        #main-content {
            position: relative;
            width: 100vw;
            height: 100vh;
            opacity: 0;
            visibility: hidden;
            transition: opacity 1.5s ease-in, visibility 1.5s ease-in;
        }

        body.loaded #main-content {
            opacity: 1;
            visibility: visible;
        }
 /* ========================================= */
        /* FINE STILI LOADING SCREEN */
        /* ========================================= */


        /* ========================================= */
        /* INIZIO STILI CONTENUTO PAGINA */
        /* Specifici per questa pagina */
        /* ========================================= */
        
        /* --- Sfondo Video e Fallback --- */
        .background-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
        }
        
        .background-container video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: translateX(-50%) translateY(-50%);
        }

        .fallback-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://tenutafriggiali.sviluppo.host/wp-content/uploads/2025/11/fallback-friggiali.jpg');
            background-size: cover;
            background-position: center;
            z-index: -1;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: -1;
        }

        /* --- Icona Burger Menu --- */
        .box-burger {
            position: fixed;
            top: 40px;
            right: 40px;
        } 

        .burger {
            width: 50px;
            height: 50px;
            cursor: pointer;
        }

        .burger line {
            stroke: #fff;
            stroke-width: 1.0;
            stroke-linecap: round;
            transition: transform 0.3s ease, stroke 0.3s ease;
            transform-origin: center;
        }

        .burger circle {
            fill: #fff;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .burger:hover .line-top,
        .burger:hover .line-bottom {
            transform: translateX(4px);
        }

        .burger:hover .line-middle {
            transform: translateX(-4px);
        }

        .burger:hover circle {
            opacity: 1;
        }

        /* --- Logo Centrale --- */
        .logo-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            max-width: 60%;
        }

        .logo-container img {
            max-width: 320px;
            width: 100%;
            height: auto;
        }

        /* --- Menu in Basso --- */
        .main-menu {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: transparent;
            padding: 20px 40px;
            border-radius: 20px;
        }

        .main-menu ul {
            list-style: none;
            display: flex;
            gap: 100px;
            flex-wrap: nowrap;
            justify-content: center;
        }

        .main-menu li {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        .diamond-container {
            width: 18px;
            height: 23px;
            position: relative;
        }

        svg {
            width: 100%;
            height: 100%;
        }

        .diamond-path {
            fill: none;
            stroke: #fff;
            stroke-width: 1;
            stroke-dasharray: 120;
            stroke-dashoffset: 120;
            transition: none;
        }

        .main-menu a {
            text-decoration: none;
            color: #fff;
            font-size: 24px;
            font-weight: 300;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            position: relative;
            text-transform: uppercase;
        }

        .main-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 1px;
            background: #fff;
            transition: width 0.6s ease-out;
        }

        .main-menu li:hover a::after {
            width: 80%;
        }

        /* --- Responsive --- */
        @media (max-width: 1200px) {
            .main-menu ul {
                gap: 50px;
            }
            .main-menu a {
                font-size: 20px;
            }
        }

        @media (max-width: 768px) {
            .logo-container {
                top: 35%;
                max-width: 80%;
            }

            .logo-container img {
                max-width: 220px;
            }

            .main-menu {
                bottom: 30px;
                left: 0;
                right: 0;
                transform: none;
                padding: 20px 0;
                width: 100%;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
            }

            .main-menu::-webkit-scrollbar {
                height: 4px;
            }

            .main-menu::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.1);
            }

            .main-menu::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.3);
                border-radius: 2px;
            }

            .main-menu ul {
                flex-direction: row;
                gap: 40px;
                padding: 0 20px;
                min-width: max-content;
            }

            .main-menu li {
                flex-shrink: 0;
            }

            .main-menu a {
                font-size: 18px;
                white-space: nowrap;
            }

            .box-burger {
                top: 20px;
                right: 20px;
            }

            .burger {
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 480px) {
            .logo-container img {
                max-width: 180px;
            }

            .main-menu a {
                font-size: 16px;
            }

            .main-menu ul {
                gap: 30px;
            }
        }
        /* ========================================= */
        /* FINE STILI CONTENUTO PAGINA */
        /* ========================================= */