/* ======================================================
   COMPOSITE WELLINGTON LEITE
   STYLE.CSS
   PARTE 1
====================================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#ececec;
    color:#222;
    opacity:0;
    transition:opacity .8s;
}

body.loaded{
    opacity:1;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

/* ======================================================
   CONTAINER
====================================================== */

.container{

    width:min(1800px,96%);

    margin:25px auto;

    background:#fff;

    display:grid;

    grid-template-columns:50% 25% 25%;

    align-items:stretch;

    border-radius:10px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,.12);

}

/* ======================================================
   FOTO PRINCIPAL
====================================================== */

.principal{

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

}

.principal img{

    width:100%;

    height:auto;

    max-height:100%;

    object-fit:cover;

    display:block;

    transition:.35s;

}

.principal img:hover{

    transform:scale(1.01);

}

/* ======================================================
   COLUNA CENTRAL
====================================================== */

.centro{

    padding:28px;

    display:flex;

    flex-direction:column;

}

.centro header{

    margin-bottom:22px;

}

.centro h1{

    font-size:clamp(2.4rem,3vw,3.8rem);

    font-weight:900;

    line-height:.88;

    letter-spacing:-2px;

    color:#111;

}

.centro h2{

    margin-top:8px;

    font-size:1rem;

    letter-spacing:6px;

    color:#777;

    font-weight:600;

}

/* ======================================================
   GALERIA
====================================================== */

.galeria{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:10px;

}

.galeria img{

    width:100%;

    height:180px;

    object-fit:cover;

    object-position:center top;

    border-radius:5px;

    cursor:pointer;

    transition:.30s;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

}

.galeria img:hover{

    transform:scale(1.04);

    box-shadow:0 10px 20px rgba(0,0,0,.25);

}

/* ======================================================
   DADOS
====================================================== */

.dados{

    background:#fafafa;

    border-left:1px solid #ddd;

    padding:28px;

    display:flex;

    flex-direction:column;

}

.dados h3{

    font-size:1.8rem;

    font-weight:700;

    letter-spacing:1px;

    margin-bottom:25px;

    padding-bottom:10px;

    border-bottom:3px solid #111;

}

/* ======================================================
   TABELA
====================================================== */

table{

    width:100%;

    border-collapse:collapse;

    margin-bottom:30px;

}

table tr{

    transition:.2s;

}

table tr:hover{

    background:#f4f4f4;

}

table td{

    padding:11px 0;

    border-bottom:1px solid #e3e3e3;

    font-size:16px;

}

table td:first-child{

    width:46%;

    font-weight:bold;

    color:#222;

}

table td:last-child{

    text-align:right;

    color:#555;

}

/* ======================================================
   LINKS
====================================================== */

.links{

    display:flex;

    flex-direction:column;

    gap:14px;

    margin-top:10px;

    margin-bottom:30px;

}

.links a{

    display:block;

    padding:14px;

    border:2px solid #111;

    text-align:center;

    color:#111;

    font-weight:bold;

    border-radius:6px;

    transition:.30s;

}

.links a:hover{

    background:#111;

    color:#fff;

}

/* ======================================================
   QR CODE
====================================================== */

.qr{

    margin-top:auto;

    text-align:center;

}

.qr img{

    width:180px;

    margin:auto;

    border-radius:8px;

    box-shadow:0 3px 12px rgba(0,0,0,.15);

}

/* ======================================================
   LIGHTBOX
====================================================== */

#lightbox{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.92);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

#lightbox.ativo{

    opacity:1;

    visibility:visible;

}

#lightbox img{

    max-width:92%;

    max-height:92%;

    border-radius:8px;

    box-shadow:0 15px 50px rgba(0,0,0,.45);

}

#fechar{

    position:absolute;

    top:20px;

    right:35px;

    font-size:58px;

    color:#fff;

    cursor:pointer;

    user-select:none;

}

/* ======================================================
   ANIMAÇÕES
====================================================== */

.esconder{

    opacity:0;

    transform:translateY(40px);

    transition:.8s;

}

.mostrar{

    opacity:1;

    transform:translateY(0);

}

/* ======================================================
   RESPONSIVO
====================================================== */

/* Notebook */

@media (max-width:1500px){

    .container{

        width:98%;

        grid-template-columns:48% 27% 25%;

    }

    .centro h1{

        font-size:3rem;

    }

}

/* Tablet */

@media (max-width:1200px){

    .container{

        grid-template-columns:1fr;

    }

    .principal{

        height:700px;

    }

    .centro,
    .dados{

        padding:30px;

    }

    .dados{

        border-left:none;

        border-top:1px solid #ddd;

    }

    .galeria{

        grid-template-columns:repeat(4,1fr);

    }

}

/* Tablet pequeno */

@media (max-width:900px){

    .principal{

        height:520px;

    }

    .galeria{

        grid-template-columns:repeat(3,1fr);

    }

    .centro h1{

        font-size:2.6rem;

    }

}

/* Celular */

@media (max-width:600px){

    body{

        background:#fff;

    }

    .container{

        width:100%;

        margin:0;

        border-radius:0;

        box-shadow:none;

    }

    .principal{

        height:420px;

    }

    .centro,
    .dados{

        padding:20px;

    }

    .centro h1{

        font-size:2rem;

        letter-spacing:-1px;

    }

    .centro h2{

        font-size:.95rem;

        letter-spacing:4px;

    }

    .galeria{

        grid-template-columns:repeat(2,1fr);

        gap:8px;

    }

    table td{

        font-size:15px;

    }

    .links a{

        padding:12px;

    }

    .qr img{

        width:150px;

    }

}

/* Celulares muito pequenos */

@media (max-width:380px){

    .principal{

        height:320px;

    }

    .centro h1{

        font-size:1.7rem;

    }

    .galeria{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ======================================================
   IMPRESSÃO
====================================================== */

@media print{

    body{

        background:#fff;

    }

    .container{

        width:100%;

        margin:0;

        box-shadow:none;

        border:none;

    }

    .links{

        display:none;

    }

    #lightbox{

        display:none !important;

    }

}