/*=====================
    Italy Barbershop
 ====================*/

 :root {
    --primary-color: #ffaa55;
    --secondary-color: #222;
    --text-color: #f3f3f3;
    --bg-color: #121212;
    --main-background: #efefef;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --border-radius: 10px;
    --space-s: 12px;
    --space-m: 20px;
    --space-l: 40px;
    --font-base: 'Inter', Arial, sans-serif;
    --font-heading: 'Georgia', serif;
}


* {
    box-sizing: border-box;
}

a, button, input, select, textarea {
    outline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -42px;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: #121212;
    color: #fff;
    z-index: 9999;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #111;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1500;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* Animaciones on-scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-show {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease;
}

.service-item.animate-hidden {
    transform: translateY(30px);
}

.service-item.animate-show {
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 60px;
    font-family: var(--font-base);
    background-color: var(--main-background);
    color: #fff;
    min-height: 100vh;
    line-height: 1.5;
}


/**====== Header Styles ======*/

header {
    background-color: transparent;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between; 
    gap: var(--space-m);
    padding: 0 24px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.header--fixed {
    background: rgba(17, 17, 17, 0.9);
    box-shadow: 0 0 6px var(--primary-color);
}

.logo, .logo-title {
    display: inline-flex;
    align-items: center;
}

.logo-title {
    color: #fff;
    margin-left: 12px;
}



.logo {
    width: 80px;
    border-radius: 50%;
    background-image: url('../assets/ItalyBarbershop.png');
    background-size: cover;
    display: inline-block;
}

.logo-title {
    color: #eee;
    font-size: 1.4em;
    font-family: 'Georgia', serif;
    margin-left: 15px;
    display: inline-block;
    align-self: center;
    text-wrap: nowrap;
    text-shadow: 0 0 3px var(--primary-color);
}


nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1001;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}


.navigation__item a {
    color: #f6f6f6;
    background: transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.navigation__item a:hover,
.navigation__item.menu-active a {
    color: #fff;
    background-color: rgba(255, 170, 85, 0.2);
    text-shadow: 0 0 8px rgba(255,170,85,0.7);
}

.navigation__item a::before {
    display: none;
}


.navigation__item a {
    text-decoration: none;
    color: #eee;
    font-weight: bold;
    padding: 10px 15px;
    transition: all .3s;
    position: relative;
    z-index: 1003;
}

.navigation__item a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease-in-out 0s;
}

.navigation__item a:hover {
    text-shadow: 0 0 5px var(--primary-color);
    color: #ffffff;
}

.navigation__item a:hover::before {
    width: 100%;
}

.booking-button a {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 7px;
    transition: all 0.3s;
    margin-left: 10px
}

.booking-button a:hover {
    background-color: #ff8844;
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 0 10px var(--primary-color);
    border: none;
}

.booking-button a:before {
    display: none;
}

.menu-active a {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color);
}

.menu-active > a:before {
    width: 100%;
}



/**====== Hero Styles ======*/


.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0) 60%, rgba(17,17,17,0.85) 100%);
    z-index: 0;
}

.hero__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center 30%; 
    filter:brightness(0.45);
    z-index: -2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 1rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin: 0 0 0.6rem;
    letter-spacing: 0.03em;
    text-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    color: #f0f0f0;
    max-width: 520px;
    margin: 0 auto 1.8rem;
}

.booking-button2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, var(--primary-color), #ff8844);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255,170,85,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.booking-button2 a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(255,170,85,0.55);
}



.booking-button2 {
    display: flex;
    justify-content: center;
    scale: 1.2;
}

.booking-button2 a {
    background-color: var(--primary-color);
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border-radius: 7px;
    padding: 10px 20px;
    margin-top: 30px;
    transition: all 0.3s;
}

.booking-button2 a:hover {
    background-color: #ff8844;
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 0 10px var(--primary-color);
    border: none;
}

/*=====================
    Services Styles
 =====================*/


.services {
    position: relative;
    z-index: 5;
    padding: 70px 20px;
    background-color: #0f0f0f;
    color: #fff;
    text-align: center;
    width: 100%;
    min-height: 450px;
}

.services__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.service-item {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transform: translateY(0) scale(1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255,170,85,0.7);
    box-shadow: 0 0 10px rgba(255,170,85,0.45);
}

.service-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.service-item p {
    margin: 0.8rem 0 0;
    color: #e9e9e9;
}


/*=====================
    Gallery Styles
 =====================*/

.gallery {
    position: relative;
    z-index: 5;
    padding: 70px 20px;
    background: linear-gradient(135deg, rgba(8,8,8,0.98), rgba(20,20,20,0.96));
    color: #fff;
    text-align: center;
    width: 100%;
}

.gallery__header {
    max-width: 840px;
    margin: 0 auto 30px;
    padding: 0 10px;
}

.gallery__subtitle {
    color: #ccc;
    margin-top: 12px;
    font-size: 1rem;
}

.gallery__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.gallery__item:hover, .gallery__item:focus {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.gallery__item:hover img, .gallery__item:focus img {
    transform: scale(1.04);
}

.gallery__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}



/*=====================
    Map Styles
 =====================*/

.map {
    position: relative;
    z-index: 5;
    padding: 70px 20px;
    background: linear-gradient(135deg, rgba(8,8,8,0.98), rgba(20,20,20,0.96));
    color: #fff;
}

.map__header {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 0 10px;
    text-align: center;
}

.map__subtitle {
    color: #ccc;
    margin-top: 10px;
    font-size: 1rem;
}

.map__block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.map__container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
}

.map__container iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.map__info {
    background: rgba(17,17,17,0.95);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--border-radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.map__info h3 {
    margin-top: 1rem;
    margin-bottom: 0.45rem;
    color: var(--primary-color);
}

.map__info p {
    margin: 0.2rem 0 0.8rem;
    color: #ddd;
    font-size: 0.95rem;
}

.map__details {
    list-style: disc;
    padding-left: 18px;
    margin: 0.6rem 0;
    color: #ccc;
}

.map__details li {
    margin-bottom: 0.45rem;
}

.map__info .link {
    color: var(--primary-color);
    text-decoration: none;
}

.map__info .btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--primary-color), #ff8844);
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255,170,85,0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.map__info .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255,170,85,0.45);
}


/*=====================
    Booking Styles
 =====================*/

.booking {
    position: relative;
    z-index: 5;
    padding: 70px 20px;
    background: linear-gradient(135deg, rgba(12,12,12,0.98), rgba(25,25,25,0.95));
    color: #fff;
}

.booking__header {
    max-width: 840px;
    margin: 0 auto 20px;
    text-align: center;
}

.booking__subtitle {
    color: #ccc;
    margin-top: 10px;
    font-size: 1rem;
}

.booking__form {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--border-radius);
    padding: 24px;
    background: rgba(20,20,20,0.9);
    box-shadow: var(--shadow);
}

.booking__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ddd;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: #eee;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    max-height: 220px;
    overflow-y: auto;
    line-height: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 1px solid var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(28,28,28,0.95);
}

.textarea-group {
    grid-column: 1 / -1;
}

.booking__form .btn {
    margin-top: 16px;
    width: 100%;
    padding: 14px 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius);
    border: 0;
    cursor: pointer;
    color: #eee;
    background: linear-gradient(90deg, var(--primary-color), #ff8844);
    box-shadow: 0 10px 20px rgba(255,170,85,0.42);
    transition: transform 0.23s ease, box-shadow 0.23s ease, background 0.23s ease;
}

.booking__form .btn:hover,
.booking__form .btn:focus {
    outline: none;
    transform: translateY(-2px);
    background: linear-gradient(90deg, #ffb455, #ff8a30);
    box-shadow: 0 14px 26px rgba(255,170,85,0.55);
}

.booking__form .btn:active {
    transform: translateY(0);
    box-shadow: 0 9px 18px rgba(255,170,85,0.45);
}

.booking__form .btn--loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.booking__form .btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.booking__status {
    margin-top: 12px;
    color: #b8ffc7;
    font-size: 0.96rem;
    min-height: 24px;
}

/*=====================
    Footer Styles
 =====================*/

.footer {
    background: #111;
    color: #ddd;
    padding: 38px 20px;
}

.footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.footer__about h3,
.footer__links h4,
.footer__contact h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer__links ul,
.footer__details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li,
.footer__contact p,
.footer__about p {
    margin-bottom: 10px;
}

.footer__links a,
.footer__contact a,
.footer__about a {
    color: #ccc;
    text-decoration: none;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--primary-color);
}

.footer__copyright {
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}


/*====== Back to Top Button Styles ======*/

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 1px 8px var(--primary-color);
    color: #eee;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1500;
    transition: all .3s ease;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 8px var(--primary-color);
    background-color: var(--primary-color);
}

/*=====================
    Responsive Styles
 =====================*/

@media (max-width: 1200px) {
    .gallery__grid,
    .services__list,
    .booking__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .map__block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .booking__grid {
        grid-template-columns: 1fr;
    }
    .map__container iframe {
        min-height: 350px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__contact .social-media {
        justify-content: center;
    }
}

/*=====================
    Mobile Menu Styles
 =====================*/

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.15);
    color: #ff9944;
}

.hamburger-menu:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid rgba(255, 170, 85, 0.3);
    z-index: 1250;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.mobile-menu__item:last-child {
    border-bottom: none;
}

.mobile-menu__item a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-menu__item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: left;
}

.mobile-menu__item a:hover {
    background-color: rgba(255, 170, 85, 0.15);
    color: #fff;
    padding-left: 24px;
}

.mobile-menu__item a:hover::before {
    transform: scaleX(1);
}

@media (max-width: 700px) {
    body {
        padding-top: 70px;
    }
    header {
        height: 70px;
        padding: 0 16px;
        gap: 12px;
    }
    .logo {
        width: 50px;
    }
    .logo-title {
        font-size: 1.1rem;
        margin-left: 8px;
    }
    .header__nav {
        display: none !important;
    }
    .hamburger-menu {
        display: flex;
    }
    .mobile-menu {
        display: block;
        top: 70px;
    }
    nav ul {
        gap: 10px;
    }
    .hero {
        height: 70vh;
        margin-top: 0;
    }
    .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }
    .gallery__grid,
    .services__list,
    .booking__grid {
        grid-template-columns: 1fr;
    }
    .map {
        padding: 50px 12px;
    }
    .map__container iframe {
        min-height: 280px;
    }
    .map__info {
        margin-top: 14px;
    }
    .footer {
        padding: 28px 12px;
    }
}
