/* ================================================================
   RESPONSIVE.CSS - RESPONSIVIDADE CENTRALIZADA DO SITE
   Dorigon Panetteria
   ================================================================ */

/* ================================================================
   DESKTOP - LOGO EM LINHA ÚNICA
   ================================================================ */
.logo {
    font-family: 'Arial', sans-serif;
    font-size: 1.4em;
    color: var(--secondary-light);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}

.logo:hover,
.logo:visited {
    color: var(--secondary-light);
    text-decoration: none;
}

/* Ambos os spans com MESMO TAMANHO */
.logo span {
    display: inline;
    font-size: 1em;
    line-height: 1.2;
}

.logo span:first-child {
    font-size: 1em;  /* Mesmo tamanho */
}

.logo span:last-child {
    font-size: 1em;  /* Mesmo tamanho */
}


/* ================================================================
   MOBILE - ATÉ 768px
   ================================================================ */
@media (max-width: 768px) {

    /* ========================
       FIX OVERFLOW GERAL
    ======================== */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    * {
        box-sizing: border-box;
    }

    /* ========================
       RESET E BODY
    ======================== */
    body {
        padding: 0;
        overflow-x: hidden;
    }

    /* ========================
       HEADER MOBILE - LAYOUT GRID
    ======================== */
    .header {
        padding: 12px 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 15px;
        padding: 10px 15px;
        height: auto;
        max-width: 100%;
    }

    /* ========================
   LOGO - MOBILE: 2 LINHAS
   ======================== */
.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 1.3rem;
    line-height: 1.2;
    text-align: left;
}

.logo span {
    display: block;
    font-size: 1em;  /* MESMO TAMANHO */
    line-height: 1.2;
}

.logo span:first-child,
.logo span:last-child {
    font-size: 1em;  /* MESMO TAMANHO */
}


    /* ========================
       BUSCA CENTRALIZADA
    ======================== */
    .search-container {
        justify-self: center;
        margin: 0;
        max-width: 180px;
        width: 100%;
        position: static;
        transform: none;
    }

    .search-box {
        font-size: 14px;
        padding: 10px 15px;
        min-height: 42px;
        width: 100%;
    }

    .search-icon {
        right: 12px;
        font-size: 0.9rem;
    }

    /* ========================
       HEADER RIGHT / HAMBURGER
    ======================== */
    .header-right {
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: flex !important;
    }

    /* Esconder elementos desktop */
    .header-nav,
    .desktop-nav,
    .header-right .header-nav,
    .auth-buttons,
    .nav {
        display: none !important;
    }

    /* ========================
       HERO SECTION
    ======================== */
    .hero-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 30px 15px;
        box-sizing: border-box;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* ========================
       MAIN CONTENT
    ======================== */
    .main-content {
        padding: 30px 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .page-header {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    /* ========================
       NOVIDADES SECTION
    ======================== */
    .novidades-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* ========================
       PRODUCTS GRID - CARD CENTRALIZADO
    ======================== */
    .products-grid,
    .products-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
        overflow: hidden;
    }

    .product-card {
        border-radius: var(--border-radius-large);
        overflow: hidden;
        max-width: 100%;
        width: 100%;
    }

    .product-card .product-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .product-card .product-info {
        padding: 20px;
        text-align: center;
    }

    .product-card .product-category {
        font-size: 11px;
        color: var(--secondary-color);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .product-card .product-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .product-card .product-description {
        font-size: 0.9rem;
        color: var(--text-light);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Loading e Error States */
    .loading-products,
    .no-products,
    .error-products {
        padding: 40px 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* ========================
       CAROUSEL
    ======================== */
    .carousel-container {
        height: 400px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .slide-image {
        width: 100%;
        height: 55%;
    }

    .slide-content {
        width: 100%;
        height: 45%;
        padding: 20px;
    }

    .slide-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .slide-description {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* ========================
       ENVIRONMENT SECTION (CURIOSIDADES)
    ======================== */
    .environment-section {
        padding: 30px 15px;
        margin-top: 30px;
        max-width: 100%;
        width: 100%;
        border-radius: var(--border-radius-large);
        overflow: hidden;
        box-sizing: border-box;
    }

    .environment-text {
        font-size: 1rem;
        text-align: center;
    }

    .environment-text ul {
        text-align: center;
    }

    .environment-text ul li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .environment-image-wrapper {
        margin: 25px 0;
    }

    .environment-image {
        max-width: 100%;
        border-radius: var(--border-radius);
    }

    .environment-highlights {
        flex-direction: column;
        gap: 12px;
    }

    .highlight-card {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .environment-quote {
        max-width: 100%;
        font-size: 1rem;
        padding: 15px;
    }

    /* Benefits Table */
    .benefits-table {
        display: block;
        overflow-x: auto;
    }

    .benefits-table th,
    .benefits-table td {
        padding: 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* ========================
       CONTATO PAGE
    ======================== */
    .form-section {
        flex-direction: column;
        gap: 30px;
    }

    .quick-contact {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 25px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-content h3 {
        text-align: center;
    }

    /* ========================
       ADMIN PAGE
    ======================== */
    .admin-section {
        padding: 20px;
    }

    .product-item {
        padding: 15px;
    }

    .status-badges {
        top: 10px;
        right: 10px;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .product-image-admin {
        margin-top: 35px;
    }

    .product-actions {
        flex-direction: column;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .delete-confirm-content {
        margin: 20px;
    }

    .delete-confirm-buttons {
        flex-direction: column;
    }

    /* ========================
       CARDS GERAIS
    ======================== */
    .card {
        border-radius: 15px;
        padding: 15px;
        max-width: 100%;
    }

    .card img {
        border-radius: 10px;
    }

    /* ========================
       FORMS
    ======================== */
    .form-row {
        flex-direction: column;
    }

    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px;
        font-size: 16px;
        padding: 12px 15px;
    }

    /* ========================
       MODAL
    ======================== */
    .modal-content {
        margin: 15px;
        padding: 25px;
        width: calc(100vw - 30px);
        max-width: none;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* ========================
       BUTTONS
    ======================== */
    .btn,
    button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* ========================
       FOOTER - 2 COLUNAS (COMPACTO)
    ======================== */
    .footer {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-main {
        padding: 15px 12px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 10px;
        text-align: left;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 1.4em;
        margin-bottom: 8px;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .footer-section {
        margin-bottom: 6px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .social-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .social-links img {
        width: 22px;
        height: 22px;
    }

    .admin-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin-top: 6px;
        display: inline-block;
    }

    .map-container {
        height: 140px;
        min-height: 140px;
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .footer-map {
        width: 100%;
        height: 100%;
        border: none;
    }

    .footer-bottom {
        padding: 10px 12px;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input,
    .newsletter-btn {
        border-radius: 25px;
        min-height: 44px;
        font-size: 16px;
    }

    .payment-methods {
        justify-content: center;
    }

    /* ========================
       WHATSAPP FLOAT
    ======================== */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }

    /* ========================
       SOCIAL SECTION (CONTATO)
    ======================== */
    .social-section .social-links {
        flex-direction: column;
    }

    .social-section .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   MOBILE PEQUENO - ATÉ 480px
   ================================================================ */
@media (max-width: 480px) {

    /* ========================
       HEADER
    ======================== */
    .header-content {
        gap: 10px;
        padding: 8px 12px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo .logo-line1,
    .logo span:first-child {
        font-size: 1.1em;
    }

    .logo .logo-line2,
    .logo span:last-child {
        font-size: 0.8em;
    }

    .search-container {
        max-width: 140px;
    }

    .search-box {
        font-size: 13px;
        padding: 8px 12px;
        min-height: 38px;
    }

    /* ========================
       TIPOGRAFIA
    ======================== */
    .page-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* ========================
       MAIN CONTENT
    ======================== */
    .main-content {
        padding: 20px 12px;
    }

    .page-header {
        padding: 30px 12px;
    }

    /* ========================
       PRODUCTS - CARDS CENTRALIZADOS
    ======================== */
    .products-grid,
    .products-container {
        gap: 15px;
        max-width: 350px;
        padding: 0 15px;
    }

    .product-card .product-image {
        height: 180px;
    }

    .product-card .product-info {
        padding: 15px;
    }

    .product-card .product-title {
        font-size: 1rem;
    }

    .product-card .product-description {
        font-size: 0.85rem;
    }

    /* ========================
       CAROUSEL
    ======================== */
    .carousel-container {
        height: 420px;
    }

    .slide-title {
        font-size: 1.2em;
    }

    .slide-description {
        font-size: 0.8em;
    }

    /* ========================
       ENVIRONMENT SECTION
    ======================== */
    .environment-section {
        padding: 25px 12px;
    }

    .environment-text {
        font-size: 0.95rem;
    }

    .highlight-card {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* ========================
       FORMS E MODAL
    ======================== */
    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
    }

    /* ========================
       FOOTER - 2 COLUNAS COMPACTAS
    ======================== */
    .footer-main {
        padding: 12px 10px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 8px;
        text-align: left;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 1.2em;
        margin-bottom: 6px;
    }

    .footer-column h4 {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .footer-section {
        margin-bottom: 5px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .social-links img {
        width: 20px;
        height: 20px;
    }

    .map-container {
        height: 120px;
        min-height: 120px;
    }

    .footer-bottom {
        padding: 8px 10px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    /* ========================
       WHATSAPP
    ======================== */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}

/* ================================================================
   MOBILE MUITO PEQUENO - ATÉ 375px
   ================================================================ */
@media (max-width: 375px) {

    .header-content {
        padding: 8px 10px;
        gap: 6px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo .logo-line1,
    .logo span:first-child {
        font-size: 1.1em;
    }

    .logo .logo-line2,
    .logo span:last-child {
        font-size: 0.85em;
    }

    .search-container {
        max-width: 110px;
    }

    .search-box {
        font-size: 12px;
        padding: 7px 10px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 15px 10px;
    }

    .products-grid,
    .products-container {
        max-width: 300px;
    }

    /* ========================
       FOOTER - 2 COLUNAS ULTRA COMPACTAS
    ======================== */
    .footer-main {
        padding: 10px 8px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 6px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 1.1em;
    }

    .footer-column h4 {
        font-size: 0.8rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .social-links img {
        width: 18px;
        height: 18px;
    }

    .map-container {
        height: 100px;
        min-height: 100px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-link {
        font-size: 0.75rem;
    }
}

/* ================================================================
   TOUCH DEVICES - ÁREAS DE TOQUE MAIORES
   ================================================================ */
@media (hover: none) and (pointer: coarse) {

    .btn,
    button,
    .nav-item,
    .mobile-menu-link {
        min-height: 48px;
        padding: 14px 20px;
    }

    .search-box {
        min-height: 48px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        min-height: 48px;
    }
}

/* ================================================================
   SOBRE NÓS - RESPONSIVIDADE
   ================================================================ */

/* TABLET - até 992px */
@media (max-width: 992px) {
    
    .story-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-image {
        height: 350px;
        order: -1;
    }
    
    .section-text {
        text-align: left;
    }
    
    .history-hero {
        min-height: 380px;
        margin-bottom: 60px;
    }
    
    .history-hero__title {
        font-size: 2.5em;
    }
    
    .history-hero__subtitle {
        font-size: 1.1em;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 70px;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        font-size: 1em;
    }
    
    .values-section,
    .team-section {
        padding: 50px 25px;
    }
    
    .values-grid,
    .team-grid {
        gap: 25px;
    }
}

/* MOBILE - até 768px */
@media (max-width: 768px) {
    
    .story-section {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .story-content {
        padding: 0 10px;
    }
    
    .section-label {
        font-size: 0.85rem;
    }
    
    .section-text {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }
    
    .story-image {
        height: 280px;
        border-radius: var(--border-radius);
    }
    
    .history-hero {
        min-height: 320px;
        margin-bottom: 40px;
        border-radius: 0;
    }
    
    .history-hero__overlay {
        padding: 50px 20px;
    }
    
    .history-hero__eyebrow {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
    
    .history-hero__title {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .history-hero__subtitle {
        font-size: 1rem;
    }
    
    .history-hero__scroll {
        width: 40px;
        height: 40px;
        margin-top: 30px;
    }
    
    .values-section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .value-icon {
        font-size: 2.5em;
    }
    
    .value-title {
        font-size: 1.3em;
    }
    
    .timeline-section {
        margin-bottom: 60px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.2em;
    }
    
    .team-section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
    
    .member-name {
        font-size: 1.1em;
    }
    
    .stats-section {
        padding: 50px 20px;
        margin-bottom: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-title {
        font-size: 1.8em;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

/* MOBILE PEQUENO - até 480px */
@media (max-width: 480px) {
    
    .history-hero {
        min-height: 280px;
    }
    
    .history-hero__title {
        font-size: 1.7em;
    }
    
    .story-image {
        height: 220px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-year {
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 0.85em;
    }
}

/* ================================================================
   FIX ÍCONES SOCIAIS
   ================================================================ */
.social-link {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.social-link::before {
    content: none !important;
}
