/* =====================================
   RESET + VARIABILI
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00bfff;
    --primary-dark: #0099cc;
    --dark: #111;
    --text: #333;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =====================================
   BASE
===================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================
   HEADER - Effetto 3D + fix orizzontale
===================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 5%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 9999;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* =====================================
   HERO
===================================== */

.hero {
    position: relative;
    min-height: 100vh;      /* Riduzione immagine top */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 20px;
    margin-top: 20px;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 35px;
    background: var(--primary);
    color: #fff;
    border-radius: 40px;
    transition: 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* =====================================
   SECTIONS
===================================== */

section {
    padding: 90px 7%;
}

h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-box {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

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

/* CTA */
.cta {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 80px 7%;
}

/* =====================================
   INFO SECTION
===================================== */

.info-section {
    background: #111;
    color: #fff;
    padding: 80px 7%;
}

.info-grid {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 240px;
}

.info-box h2 {
    font-size: 24px;
    text-align: left;
}

.info-box p,
.info-box a {
    color: rgba(255,255,255,0.8);
}

/* ==========================================
   FOOTER PREMIUM
========================================== */

.footer{

    background:#1b1b1b;

    color:#ffffff;

    margin-top:70px;

}

.footer-container{

    max-width:1400px;

    margin:auto;

    padding:70px 40px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:60px;

}

.footer-column h3{

    font-size:22px;

    color:#ffffff;

    margin-bottom:25px;

    border-bottom:2px solid #d4af37;

    padding-bottom:10px;

}

.footer-column p{

    color:#d9d9d9;

    line-height:1.8;

    font-size:16px;

}

.footer-column ul{

    list-style:none;

    padding:0;

    margin:0;

}

.footer-column li{

    margin:3px 0;

}

.footer-column a{

    color:#d9d9d9;

    text-decoration:none;

    transition:.3s;

}

.footer-column a:hover{

    color:#d4af37;

    padding-left:8px;

}

.social-column{

    text-align:left;

}

.social-icons{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

    margin-top:20px;

}

.social-icons a{

    width:52px;

    height:52px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:25px;

    color:#fff;

    transition:.35s;

}

.facebook{

    background:#1877f2;

}

.instagram{

    background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);

}

.youtube{

    background:#ff0000;

}

.twitter{

    background:#000;

}

.social-icons .twitter i{
    transform: scale(1.65);
}

.social-icons a:hover{

    transform:translateY(-6px) scale(1.10);

    box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.15);

    text-align:center;

    padding:25px;

    font-size:15px;

    color:#bfbfbf;

}

.footer-bottom a{

    color:#d4af37;

    text-decoration:none;

}

.footer-bottom a:hover{

    text-decoration:underline;

}

/* ==========================
   TABLET
========================== */

@media(max-width:992px){

.footer-container{

grid-template-columns:repeat(2,1fr);

gap:40px;

}

}

/* ==========================
   MOBILE
========================== */

@media(max-width:650px){

.footer-container{

grid-template-columns:1fr;

text-align:center;

}

.footer-column{

margin-bottom:15px;

}

.footer-column a:hover{

padding-left:0;

}

}

/* =====================================
   MENU MOBILE
===================================== */

@media (max-width: 900px){

    header{
        padding:18px 25px;
    }


    .menu-toggle{

        display:block;

        z-index:10001;

    }


    nav{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:#111;

        display:none;

    }


    nav.active{

        display:block;

    }


    nav ul{

        flex-direction:column;

        align-items:center;

        gap:0;

        padding:20px 0;

    }


    nav ul li{

        margin:15px 0;

    }


    nav ul li a{

        font-size:18px;

    }

}

@media (max-width:900px){

    nav.active{

        display:block;

    }

}

@media(max-width:650px){

    .footer-column,
    .social-column{

        text-align:center;

    }

    .social-icons{

        justify-content:center;

    }

}

.main-content p {
    margin-bottom: 1.6em !important;
    line-height: 1.78;
}

.main-content h2, .main-content h3 {
    margin-top: 2.5em;
    margin-bottom: 1.2em;
}

.page-container {
    display: flex;
    gap: 45px;
    align-items: flex-start;     /* Allinea tutto in alto */
    padding-top: 15px;           /* Spazio ridotto tra hero e contenuto */
}

* ALLINEAMENTO TITOLO CON SIDEBAR */
.page-container {
    align-items: flex-start !important;
    padding-top: 0;
}

.main-content {
    padding-top: 0 !important;
}

.main-content h2:first-of-type {
    margin-top: 0 !important;
    padding-top: 0;
}

.sidebar-column {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Spazio dopo l'hero (regolabile) */
section[style*="padding: 10px 7%"],
section[style*="padding: 40px 7%"] {
    padding-top: 50px !important;   /* ← Puoi aumentare o diminuire questo valore */
}

    .services {
        padding: 80px 0;
        background: linear-gradient(to bottom, #f8fafc, #ffffff);
    }

    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 20px;
    }

    h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 50px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .service-box {
        background: white;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.4s ease;
        border: 1px solid #f1f5f9;
    }

    .service-box:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .top-bar {
        height: 6px;
        width: 100%;
    }

    .orange-bar  { background: linear-gradient(to right, #f97316, #fbbf24); }
    .blue-bar   { background: linear-gradient(to right, #3b82f6, #22d3ee); }
    .emerald-bar{ background: linear-gradient(to right, #10b981, #14b8a6); }
    .amber-bar  { background: linear-gradient(to right, #f59e0b, #eab308); }
    .red-bar    { background: linear-gradient(to right, #ef4444, #f43f5e); }
    .purple-bar { background: linear-gradient(to right, #8b5cf6, #a855f7); }
    .sky-bar    { background: linear-gradient(to right, #0ea5e9, #38bdf8); }
    .pink-bar   { background: linear-gradient(to right, #ec4899, #f43f5e); }
    .indigo-bar { background: linear-gradient(to right, #6366f1, #8b5cf6); }
    .teal-bar   { background: linear-gradient(to right, #14b8a6, #22d3ee); }
    .rose-bar   { background: linear-gradient(to right, #f43f5e, #c026d3); }
    .ratliadi-bar { background: linear-gradient(to right, #d97706, #f59e0b, #fbbf24); }

    .box-content {
        padding: 40px 30px;
        text-align: center;
    }

    .service-icon {
        font-size: 3.5rem;
        margin: 0 auto 25px;
        transition: all 0.4s ease;
    }

    .service-box:hover .service-icon {
        transform: scale(1.15);
    }

    .special-box .service-icon {
        font-size: 3.8rem;
    }

    .special-box:hover .service-icon {
        transform: scale(1.15) rotate(8deg);
    }

    h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 16px;
        min-height: 52px;
    }

    .service-box p {
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 28px;
        min-height: 80px;
    }

    .service-link {
        color: #f97316;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .service-link:hover {
        color: #c2410c;
    }

    .service-link span {
        transition: transform 0.3s ease;
    }

    .service-link:hover span {
        transform: translateX(6px);
    }

    /* Speciale per Le Ratliadi */
    .special-box {
        background: linear-gradient(135deg, #fefce8, #fed7aa);
        border: 2px solid #fcd34d;
    }

    .special-box h3,
    .special-box p {
        color: #b45309;
    }

    .special-box .service-link {
        color: #b45309;
    }

    .special-box .service-link:hover {
        color: #92400e;
    }

    @media (max-width: 640px) {
        .services { padding: 60px 0; }
        h2 { font-size: 2.2rem; }
    }