@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
section{
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

header.header-hidden{
    transform: translateY(-100%);
}
header .logo{
    position: relative;
    max-width: 110px;
}
header ul{
    position: relative;
    display: flex;
}
header ul li{
    list-style: none;
}
header ul li a{
    position: relative;
    margin-left: 40px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
}

header ul li a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0066ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header ul li a:hover{
    color: #0066ff;
    transform: translateY(-2px);
}

header ul li a:hover::after{
    width: 100%;
}
.content
{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content .textBox
{
    position: relative;
    max-width: 600px;
}
.content .textBox h2
{
    font-size: 3.5em;
    line-height: 1.2em;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
.content .textBox h2 span
{
    color: #000fff;
    font-size: 1.3em;
    font-weight: 900;
    white-space: nowrap;
}
.content .textBox p
{
    color: #333;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

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

.cta-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.content .imgBox
{
    position: relative;
    width: 600px;
    display: flex;
    justify-content: flex-end;
    padding-right: -20px;
    margin-top: 50px;
}

.content .imgBox .computer-img
{
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float
{
    0%, 100%
    {
        transform: translateY(0px);
    }
    50%
    {
        transform: translateY(-20px);
    }
}

.sci{
    position: absolute;
    top: 50%;
    right: -85px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sci li
{
    list-style: none;
}
.sci li a
{
    display: inline-block;
    margin: 8px 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sci li a:hover
{
    transform: scale(0.85) translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.contatti-section
{
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contatti-content
{
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.contatti-info
{
    text-align: center;
    margin-bottom: 25px;
}

.contatti-info h1
{
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2em;
}

.contatti-info h1 strong
{
    font-weight: 700;
}

.contatti-info .indirizzo
{
    font-size: 1em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.4em;
}

.contatti-info .telefono
{
    font-size: 1em;
    color: #666;
    font-weight: 400;
    line-height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contatti-info .email-contatti
{
    font-size: 1em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contatti-icon
{
    width: 16px;
    height: 16px;
    color: #000;
    flex-shrink: 0;
}

.map-container
{
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe
{
    width: 100%;
    height: 100%;
    border: 0;
}


.preventivi-section
{
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preventivi-content
{
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.preventivi-title
{
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.preventivi-form
{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group
{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label
{
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea
{
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus
{
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea
{
    resize: vertical;
    min-height: 120px;
}

.submit-btn
{
    padding: 15px 30px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
}

.submit-btn:hover
{
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.submit-btn:disabled
{
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message
{
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
    display: none;
}

.form-message.success
{
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error
{
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}


footer
{
    position: relative;
    width: 100%;
    padding: 40px 20px;
    background: #f5f5f5;
    text-align: center;
}

.footer-content
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo
{
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.footer-address
{
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-email
{
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-email:hover
{
    color: #0066ff;
    transform: translateX(5px);
}

.footer-phone
{
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-phone:hover
{
    color: #0066ff;
    transform: translateX(5px);
}

.footer-icon
{
    width: 16px;
    height: 16px;
    color: #000;
    flex-shrink: 0;
}

.footer-copyright
{
    font-size: 0.9em;
    color: #999;
    font-weight: 300;
    margin-bottom: 15px;
}

.footer-social
{
    margin-top: 10px;
}


.footer-legal {
    margin-top: 10px;
    font-size: 0.95em;
    color: #666;
}
.footer-legal a {
    color: #0066ff;
    text-decoration: none;
    margin: 0 6px;
}
.footer-legal a:hover {
    text-decoration: underline;
}



.policy-hero {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 32px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(12, 34, 78, 0.06);
}
.policy-hero h1 {
    margin: 0 0 8px 0;
    font-size: 1.9em;
    color: #062a78;
    line-height: 1.1;
}
.policy-hero p.updated {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0;
}

.policy-content {
    max-width: 1100px;
    margin: 0 auto 50px auto;
    display: block;
    padding: 0 20px;
}

.policy-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.policy-toc {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(12, 34, 78, 0.04);
    font-size: 0.95em;
}
.policy-toc nav ul { list-style: none; padding: 0; margin: 0; }
.policy-toc nav li { margin: 10px 0; }
.policy-toc nav a { color: #0b63ff; text-decoration: none; }
.policy-toc nav a:hover { text-decoration: underline; }

.policy-card {
    
    padding: 0;
    background: transparent;
    box-shadow: none;
}


.policy-block {
    background: #fff;
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(18, 40, 91, 0.04);
    margin-bottom: 18px;
    border-left: 4px solid rgba(6, 42, 120, 0.08);
}
.policy-block h2 {
    color: #062a78;
    margin: 0 0 12px 0;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 600;
}
.policy-block .policy-block-content p,
.policy-block .policy-block-content li {
    color: #374151;
    line-height: 1.8;
    margin: 0 0 14px 0;
}
.policy-block .policy-block-content ul { padding-left: 18px; }


.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.policy-card table, .policy-card table thead, .policy-card table tbody { width: 100%; }
.policy-card table { border-collapse: collapse; margin-top: 12px; min-width: 480px; }
.policy-card th, .policy-card td { padding: 10px 12px; border-bottom: 1px solid #eef3fb; text-align: left; vertical-align: top; }
.policy-card thead th { background: #fbfbfe; color: #0b63ff; font-weight: 700; border-bottom: 2px solid #e6eef8; }
.policy-card tbody tr:hover { background: #fbfdff; }
.policy-card caption { color: #6b7280; font-size: 0.95em; padding-bottom: 6px; text-align: left; }


@media (max-width: 600px) {
    .policy-card table { border: 0; }
    .policy-card thead { display: none; }
    .policy-card tr { display: block; margin-bottom: 12px; background: #fff; padding: 12px; border-radius: 8px; box-shadow: 0 6px 16px rgba(18,40,91,0.04); }
    .policy-card td { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: none; }
    .policy-card td::before { content: attr(data-label); font-weight: 600; color: #6b7280; margin-right: 12px; flex-shrink: 0; }
}

@media (max-width: 900px) {
    .policy-block { padding: 14px 12px; }
    .policy-block h2 { font-size: 1.05rem; }
}

.policy-actions { margin-top: 20px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 25px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.btn-primary { background: #0066ff; color: #fff; box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4); background: #0052cc; }
.btn-secondary { border: 2px solid #0066ff; color: #0066ff; background: transparent; }
.btn-secondary:hover { background: #0066ff; color: #fff; transform: translateY(-3px); }
.btn-outline { background: #fff; border: 1px solid #d1d5db; color: #374151; }




.cookie-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    background: rgba(6, 22, 60, 0.45);
}
.cookie-modal.open { display: flex; }
.cookie-modal-wrap {
    width: 680px; max-width: calc(100% - 40px);
    background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(18,40,91,0.12);
}
.cookie-modal-header { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid #eef3fb; }
.cookie-modal-body { padding:18px 22px; }
.cookie-modal-close { background:transparent; border:none; font-size:18px; cursor:pointer; }
.cookie-pref-row { display:flex; align-items:center; justify-content:space-between; gap:16px; border-radius:8px; padding:12px 8px; }
.cookie-pref-info p { margin:4px 0 0 0; color:#6b7280; font-size:0.95em; }
.cookie-pref-control input { width:20px; height:20px; }
.cookie-modal-actions { display:flex; gap:12px; margin-top:16px; }

@media (max-width: 600px) {
    .cookie-modal-wrap { width: 92%; }
    .cookie-pref-row { flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .policy-hero, .policy-card { transition: none; }
}

.footer-follow
{
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-social-icons
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-social-link
{
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-social-link:hover
{
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.footer-social-link img
{
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    clip-path: circle(600px at right 800px);
}


@media (max-width: 768px)
{
    .circle
    {
        display: none;
    }
}


.cookie-banner
{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 25px 30px;
    display: none; 
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid #0066ff;
}


.cookie-banner.show {
    display: flex;
}


@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
}

@keyframes slideUp
{
    from
    {
        transform: translateY(100%);
        opacity: 0;
    }
    to
    {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content
{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-icon
{
    font-size: 40px;
    flex-shrink: 0;
}

.cookie-text
{
    flex: 1;
    min-width: 250px;
}

.cookie-text h3
{
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-text p
{
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}




section, .policy-block { scroll-margin-top: 100px; }
@media (max-width: 900px) { section, .policy-block { scroll-margin-top: 78px; } }


.nav-toggle{
    position: relative;
    width:44px;
    height:36px;
    background:transparent;
    border:none;
    cursor:pointer;
    padding:6px;
}
.nav-toggle .bar{
    position: absolute;
    left: 50%;
    width:22px;
    height:3px;
    background:#062a78;
    border-radius:3px;
    transform-origin: center center;
    transition: top 180ms ease, transform 220ms ease, opacity 180ms ease;
    transform: translateX(-50%);
}
.nav-toggle .bar.top{ top: 10px; }
.nav-toggle .bar.bottom{ top: 22px; }


.nav-toggle.active .bar.top{ top: 50%; transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle.active .bar.bottom{ top: 50%; transform: translate(-50%,-50%) rotate(-45deg); }


.nav-links { display: block; }
.nav-links{ transition: transform 260ms cubic-bezier(.25,.8,.25,1), opacity 220ms ease; transform-origin: top right; }

/* Global Nav Styles */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-links { display: block; }
.nav-links ul { display: flex; gap: 20px; }
.nav-links.open { display: block; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    section { padding: 80px 50px; }
    header { padding: 15px 50px; }
    .content .textBox h2 { font-size: 2.5em; }
    .content .imgBox { width: 400px; padding-right: 20px; }
    .sci { right: -60px; }
    .contatti-section, .preventivi-section { padding: 80px 50px; }
    .map-container, .preventivi-form { max-width: 100%; }
}

@media (max-width: 900px) {
    /* Header & Navigation */
    header { padding: 14px 24px; align-items: center; }
    .nav-toggle { display: block; }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 68px; 
        right: 20px; 
        background: #fff; 
        border-radius: 10px; 
        box-shadow: 0 10px 30px rgba(12,34,78,0.08); 
        padding: 12px 16px; 
        z-index: 1001; 
        min-width: 160px; 
        transform: translateY(-6px); 
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-links.open { 
        display: block; 
        transform: translateY(0); 
        opacity: 1;
    }
    .nav-links ul { flex-direction: column; gap: 10px; }
    .nav-links a { color: #333; text-decoration: none; display: block; padding: 8px 10px; border-radius: 6px; }
    .nav-links a:hover { background: #f3f6ff; color: #0066ff; }

    /* Home Page & General Layout */
    section { padding: 100px 24px 60px 24px; display: block; } 
    .content { flex-direction: column; gap: 40px; margin-top: 20px; }
    .content .imgBox { width: 100%; justify-content: center; margin-top: 0; padding-right: 0; }
    .content .imgBox .computer-img { max-width: 80%; margin: 0 auto; display: block; }
    .content .textBox { max-width: 100%; text-align: center; }
    .content .textBox h2 { white-space: normal; font-size: 2.5em; }
    .cta-group { justify-content: center; }
    
    /* Social Icons */
    .sci { 
        position: static; 
        transform: none; 
        flex-direction: row; 
        gap: 20px; 
        margin-top: 40px; 
        justify-content: center; 
        width: 100%;
        right: auto;
    }
    .sci li a { transform: scale(1); margin: 0; }
    .sci li a:hover { transform: scale(1.1); }

    /* Policy Pages (Privacy & Cookie) */
    .policy-body { grid-template-columns: 1fr; }
    .policy-toc { order: -1; margin-bottom: 30px; } /* Legend at top */
    .policy-card { padding: 18px; }
    .policy-card section { padding-bottom: 12px; }
    .policy-content { padding: 0 12px; }
    .footer-content { padding: 0 12px; }
}

@media (max-width: 600px) {
    header { padding: 12px 16px; }
    .content .textBox h2 { font-size: 2em; }
    .logo { max-width: 90px; }
    .cookie-banner { padding: 18px 16px; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
    
    .preventivi-section, .contatti-section { padding: 80px 20px; }
}

.cookie-buttons
{
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn
{
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.cookie-btn.accept
{
    background: #0066ff;
    color: #fff;
}

.cookie-btn.accept:hover
{
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.cookie-btn.decline
{
    background: #f0f0f0;
    color: #333;
}

.cookie-btn.decline:hover
{
    background: #e0e0e0;
    transform: translateY(-2px);
}







/* Gallery Styles */
.gallery-body {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 250px;
    }
}
