/********** Template CSS **********/
:root {
    --primary: #ea4e1b;
    --secondary: #F65005;
    --light: #F7F8FC;
    --dark: #111111;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    color: #fff;
}

.navbar-nav .nav-link {
    color: #fff !important;
    transition: color 0.3s;
}


.navbar-nav.scrolled .nav-link {
    color: #000 !important;
}

#sobre-amalfi {
    font-size: 2.3rem;
    scroll-margin-top: 100px;
}

#produtos {
    scroll-margin-top: 100px;
}

#contato {
    scroll-margin-top: 100px;
}

#branding {
    margin-top: 15px;
}

#footer-address {
    text-align: center;
}

@media (max-width: 991.98px) {
    .navbar.navbar-open {
        background-color: #fff !important;
        transition: background-color 0.2s ease;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .navbar .navbar-toggler {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none;
        -webkit-tap-highlight-color: transparent;

        /* Área de toque confortável (sem “apertar” o ícone) */
        width: 44px;
        height: 44px;
        padding: 0;
        /* sem padding extra no botão */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .navbar-toggler:focus,
    .navbar .navbar-toggler:active {
        box-shadow: none !important;
        outline: none;
    }

    /* Ícone branco por padrão (no topo) */
    .navbar .navbar-toggler .toggler-icon i {
        font-size: 1.8rem;
        line-height: 1;
        color: #fff;
        transition: color .25s ease;
    }

    /* Ícone preto quando o menu está aberto (botão não-colapsado) */
    .navbar .navbar-toggler:not(.collapsed) .toggler-icon i {
        color: #000;
    }

    /* Ícone preto quando a página é rolada (adicione .scrolled na navbar via JS) */
    .navbar.scrolled .navbar-toggler .toggler-icon i {
        color: #000;
    }

    .logo {
        margin-left: 12px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #555555;
    border: 10px solid #555555;
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/banner-amalfi-1.jpg) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}

.col-lg-7 {
    margin-left: 50px;
}

#itcode-footer {
    font-size: 13px;
}

#text-banner-1 {
    color: #FFFFFFD9;
}

#text-banner-2 {
    color: #FFFFFFD9;
}




/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item img {
    transition: .5s;
}

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

.product-item small a:hover {
    color: var(--primary) !important;
}

.product-item {
    height: 600px;
    /* ajuste o valor */
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.logo-amalfi {
    height: 70px;
    width: 130px;
}

.nav.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.nav.nav-pills::-webkit-scrollbar {
    height: 6px;
}

.nav.nav-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.nav.nav-pills::-webkit-scrollbar-thumb {
    background: #ea4e1b;
    border-radius: 10px;
}

/* Estilo dos botões */
.nav.nav-pills .nav-item {
    flex: 0 0 auto;
}

.nav.nav-pills .nav-item .btn {
    white-space: nowrap;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 18px;
    border: 2px solid #ea4e1b;
    color: #ea4e1b;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-left: 5px;
}

.nav.nav-pills .nav-item .btn:hover,
.nav.nav-pills .nav-item .btn.active {
    background: #ea4e1b;
    color: #fff;
}

.info-text {
    font-size: 1.2rem;
}

.instagram-size {
    height: 45px;
    width: 45px;
}

.fa-instagram {
    font-size: 1.2rem;
}

.carousel-caption h1.display-2 {
    font-size: 2rem !important;
    font-weight: bold;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .carousel-caption h1.display-2 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1050px) {
    .carousel-caption h1.display-2 {
        font-size: 3rem !important;
    }
}

@media (min-width: 1400px) {
    .carousel-caption h1.display-2 {
        font-size: 4.5rem !important;
    }
}

@media (max-width: 768px) {
    .nav.nav-pills {
        flex-wrap: wrap;
        justify-content: left !important;
        overflow-x: visible;
    }

    .nav.nav-pills .nav-item {
        margin-bottom: 8px;
        width: 90px;
    }

    .col-lg-7 {
        margin-left: 0px;
    }

    #menu {
        background-color: white;
    }

    #menu .nav-link {
        color: #555555 !important;
    }

    .product-item {
        height: 625px;
    }

    .footer .row {
        text-align: center;
    }

    .footer .col-md-6,
    .footer .col-lg-3 {
        margin-bottom: 20px;
    }

    .footer .logo-amalfi {
        max-width: 150px;
        margin: 0 auto 15px auto;
        display: block;
    }

    .footer .btn-square {
        margin: 0 auto;
    }

    .footer h6 {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDADE ===== */

/* Tablets e dispositivos médios (768px - 991px) */
@media (max-width: 991.98px) {

    .navbar .navbar-nav .nav-link {
        padding: 10px 15px;
    }

    .carousel-caption {
        text-align: center;
    }

    .carousel-caption .display-2 {
        font-size: 2.5rem;
    }

    .section-header.text-start::before,
    .section-header.text-start::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav.nav-pills {
        justify-content: flex-start;
    }

    .nav.nav-pills .nav-item .btn {
        font-size: 14px;
        padding: 7px 15px;
    }
}

@media (max-width: 767.98px) {

    .top-bar {
        height: auto;
        padding: 8px 0;
    }

    .top-bar .col-lg-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }

    .logo-amalfi {
        height: 50px;
        width: 100px;
        color: #111111;
    }

    .carousel-caption .display-2 {
        font-size: 1.2rem;
        margin-bottom: 15px !important;
    }

    .about-img::before {
        display: none;
    }

    .bg-white.text-center {
        margin-bottom: 20px;
    }

    .nav.nav-pills {
        justify-content: center;
        gap: 8px;
    }

    .nav.nav-pills .nav-item .btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .text-white.d-flex.flex-column {
        margin-bottom: 30px;
    }

    .footer .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }

    .copyright .col-md-6 {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {

    .display-5 {
        font-size: 1.8rem;
    }

    h1.display-2 {
        font-size: 1.8rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        border: 5px solid #555555;
    }

    .nav.nav-pills {
        gap: 5px;
    }

    .nav.nav-pills .nav-item .btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .product-item {
        margin-bottom: 20px;
    }

    .col-xl-3.col-lg-4.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-floating {
        margin-bottom: 15px;
    }

    .footer .btn.btn-link {
        display: inline-block;
        margin-right: 15px;
    }
}

@media (max-height: 600px) {
    .carousel-caption {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .carousel-caption .display-2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    .carousel-item {
        min-height: 350px;
    }

    .carousel-item img {
        min-height: 350px;
        object-fit: cover;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        background-color: initial;
        color: initial;
    }

    .nav-pills .nav-item .btn,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@supports (-webkit-touch-callout: none) {

    .carousel-control-prev,
    .carousel-control-next {
        padding: 0;
    }
}

@media screen and (max-width: 767px) {

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

.form-floating .form-control:focus {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25) !important;
}

.form-floating .form-control.is-valid {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25) !important;
}

.form-floating .form-control.is-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25) !important;
}

#contactButton {
    background-color: #FFFACD;
}

#contactButton:hover {
    background-color: #ff6600;
    color: white;
    height: 68px;
}

.back-to-top {
    position: fixed;
    bottom: 90px; /* sobe o botão acima do reCAPTCHA */
    right: 20px;
    z-index: 1000;
}

