@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
}

:root {
    --primary-color: #0077FF;
    --secondary-color: #0055CC;
    --text-color: #003366;
    --bg-color: #fff8f0;
    --highlight-bg: #f0f7ff;
}


html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 10px;
}

main {
    flex: 1;
}


.main-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    gap: 20px;
}

.main-header h1 {
    color: var(--text-color);
    font-size: 36px;
}

.main-logo {
    width: 120px;
    max-width: 30%;
    height: auto;
}

/*Cabeçalho em telas pequenas*/
@media(max-width: 768px){
    .main-header h1{ font-size: 28px; }
    .main-logo{ max-width: 50%; }
}

.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.main-nav {
    display: none;
    background-color: var(--primary-color);
}

.main-nav.active { display: block; }

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li { border-top: 1px solid var(--secondary-color); }

.main-nav a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
}

.main-nav a:hover { background-color: var(--text-color); }

/*Menu visivel em telas grandes */
@media(min-width: 768px){
    .menu-toggle{ display: none; }
    .main-nav{ display: block; }
    .main-nav ul{ display: flex; gap: 20px; }
    .main-nav li{ border: none; }
    .main-nav a{ padding: 10px 15px; }
}

h1{ color: var(--text-color); font-size: 36px; }
h2{ color: var(--secondary-color); font-size: 27px; }
h3{ color: var(--primary-color); font-size: 23px; }

/*Titulos e subtitulos para telas pequenas*/
@media(max-width: 600px){
    h1{font-size: 28px;}
    h2{font-size: 22px;}
    h3{font-size: 18px;}
}

.principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin:40px auto;
    padding: 40px 20px;
    background-color: var(--highlight-bg);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    max-width: 800px;
    min-width: 320px;
}

/*Conteudo principal em telas pequenas*/
@media(max-width: 400px){
    .principal{ padding: 20px 10px; margin: 20px 10px; }
}

.sobre { text-align: left; margin-bottom: 10px; max-width: 900px; }
section { text-align: left; margin-bottom: 10px; }

section ul {
    list-style: none;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

table {
    border-radius: 10px;
    max-width: 800px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    border: 1px solid var(--primary-color);
    border-collapse: collapse;
}

th,td {
   text-align: center;
   padding: 12px 10px;
   border-bottom: 1px solid var(--primary-color);
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
}

tr:hover {
    background-color: var(--primary-color);
    transition: 0.03s;
    color: white;
    cursor: pointer;
}

.table-responsive{ width: 100%; overflow: auto; }
.table-responsive table{ width: 100%; border-collapse: collapse; }

.galeria {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.galeria img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.03s, box-shadow 0.3s;
}

.galeria img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/*imagens para telas pequenas*/
@media(max-width:500px){
    .galeria{ justify-content: center; }
    .galeria img, .destacado img{ max-width: 100px; }
}

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

.destacado img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.03s, box-shadow 0.3s;
}

.destacado img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.video-padaria {
    display: block;
    border-radius: 12px;
    box-shadow: 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    margin: 40px auto;
    cursor: pointer;
}

.localizacao {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    align-items: center; 
}

.localizacao img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.03s, box-shadow 0.3s;
}

.localizacao img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/*Video e localizaçao em telas pequenas*/
@media(max-width: 600px){
    .localizacao img{ max-width: 200px; height: auto; }
    .video-padaria{ width: 100%; height: auto; }
}

footer {
    width: 100%;
    color: white;
}

.footer-link{ text-decoration: none; }

#footer_content {
    background-color: var(--text-color);
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding: 3rem 3.5rem;
}

#footer_contacts { margin-bottom: 0.75rem; }

#footer_social_media {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

#footer_social_media .footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    color: white;
    border-radius: 50%;
    transition: all 0.4s;
}
#footer_social_media .footer-link i{ font-size: 1.25rem; }

#footer_social_media .footer-link:hover{ opacity: 0.8; }

#instagram{ background: linear-gradient(#7f37c9, #ff2992, #ff9807); }
#facebook{ background-color: #4267b3; }
#whatsapp{ background-color: #22d366; }

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.footer-list .footer-link {
    color: white;
    transition: all 0.4s;
}

.footer-list .footer-link:hover { color: #7f37c9; }

#footer_subscribe {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#footer_subscribe p{ color: white; }

#input_group {
    display: flex;
    align-items: center;
    background-color: black;
    border-radius: 4px;
}

#input_group input {
    all: unset;
    padding: 0.75rem;
    width: 100%;
}

#input_group button {
    background-color: #7f37c9;
    border: none;
    color: white;
    padding: 0px 1.25rem;
    font-size: 1.125rem;
    height: 100%;
    border-radius: 0px 4px 4px 0px;
    transition: all 0.4s;
}

#input_group button:hover{ opacity: 0.8; }

#footer_copyright {
    display: flex;
    justify-content: center;
    background-color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 1.5rem;
    font-weight: 100%;
}

@media screen and (max-width: 768px) {
    #footer_content{
        grid-template-columns: repeat(2,1fr);
        gap: 2rem;
        text-align: center;
    }
}

@media screen and (max-width: 426px) {
    #footer_content{
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }
    #footer_social_media{ justify-content: center; }
}

.botaoWhats {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 120px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.botaoWhat { transform: scale(1.1); }

@media(max-width: 500px){
    .botaoWhats {
        width: 80px;
        height: 60px;
        font-size: 16px;
    }
}
