/* ========================================================
   RESET & REGOLE GLOBALI
   ======================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    padding-top: 60px;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
}

h1, h2, h3, .logo, .nav-link, .main-menu a, .prenota, .card-label, .section-title, .team-section-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1, h2, h3 {
    color: #111111;
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* ========================================================
   HEADER / NAVBAR
   ======================================================== */
.home {
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
}

.home a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.barber_pole {
    width: 32px;
}

.brand-title {
    font-family: 'Permanent Marker', cursive, sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MENU NAVIGAZIONE */
.main-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-menu a {
    color: #111111;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-menu a:hover {
    color: #E63946;
}

/* Responsive Header */
@media (max-width: 400px) {
    .home {
        gap: 10px;
        padding: 0 10px;
    }

    .brand-title {
        font-size: 18px;
    }

    .main-menu {
        gap: 12px;
    }

    .main-menu a {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .home {
        height: 70px;
        padding: 0 40px;
    }

    .barber_pole {
        width: 40px;
    }

    .brand-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .main-menu {
        gap: 25px;
    }

    .main-menu a {
        font-size: 14px;
    }
}

/* ========================================================
   SEZIONE HERO / FIRST SECTION
   ======================================================== */
.first_section {
    background-color: #111111;
    width: 100%; 
    height: 300px; 
    background-image: repeating-linear-gradient(
        -45deg,
        #c92c2c, #c92c2c 10px,
        #ffffff 10px, #ffffff 20px,
        #2a52be 20px, #2a52be 30px,
        #ffffff 30px, #ffffff 40px
    );
    background-repeat: repeat-x;        
    background-position: top center;    
    background-size: 56.57px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    animation: muoviPalo 40s linear infinite;
}

.logo {
    max-width: 250px;
    width: auto;
    height: auto;
}

.prenota {
    background-color: #E63946 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px; 
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.prenota:hover {
    background-color: #C82333 !important; 
}

/* ========================================================
   SEZIONE SECOND / TESTO CENTRATO STATICO
   ======================================================== */
.second_section {
    background-color: #ffffff;
    height: 80px;
    border-radius: 20px 20px 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ticker-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.ticker-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ticker-text span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .second_section {
        height: auto;
        padding: 20px 10px;
    }
    
    .ticker-text span {
        font-size: 0.8rem;
    }
}

/* ========================================================
   INTESTAZIONI SEZIONI UNIFORMATE (I NOSTRI TAGLI, IL TEAM, DICONO DI NOI, DOVE SIAMO)
   ======================================================== */
.section-header, 
.team-header, 
.reviews-header, 
.map-header {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* DIMENSIONE E STILE TITOLI UNIFORMATI PER TUTTE LE SEZIONI */
.section-title, 
.team-section-title, 
.reviews-header h2, 
.map-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111111;
}

@media (max-width: 768px) {
    .section-title, 
    .team-section-title, 
    .reviews-header h2, 
    .map-header h2 {
        font-size: 22px;
    }
}

/* ========================================================
   SEZIONE TAGLI (THIRD SECTION)
   ======================================================== */
.third_section {
    padding: 50px 0;
}

.instagram-link {
    color: #E63946;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.instagram-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.cards-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px 20px;
    overflow-x: auto; 
    scrollbar-width: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.taglio-card {
    flex: 1;
    min-width: 250px; 
    height: 300px; 
    background-color: #dbdbdb; 
    border-radius: 24px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease;
}

.taglio-card:hover {
    transform: translateY(-5px); 
}

.taglio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ========================================================
   SEZIONI SFONDO CREMA (FOURTH, REVIEWS, SIXTH)
   ======================================================== */
.fourth_section, 
.reviews_section, 
.sixth_section {
    background-color: #f9f8f6;
    width: 100%;
}

.fourth_section {
    padding: 60px 0; 
}

.reviews_section {
    padding: 60px 0;
    overflow: hidden;
}

.sixth_section {
    padding: 60px 0;
}

/* ========================================================
   TEAM (CON TITOLO SEMPRE CENTRATO)
   ======================================================== */
.team-header {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.team-section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center !important;
    width: 100%;
}

.team-container {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.team-container::-webkit-scrollbar {
    display: none;
}

.member-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-photo-placeholder {
    width: 100%;
    height: 240px;
    background-color: #dbdbdb;
    position: relative;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    font-size: 18px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .team-container {
        justify-content: center !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
    }
}

/* RECENSIONI */
.reviews-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
}

.separatore {
    width: 80%;
    max-width: 800px;
    height: 1px; /* Spessore massimo al centro */
    margin: 40px auto;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        #2c2a2a 50%, 
        transparent 100%
    );
    border: none;
    border-radius: 50%; /* Smussa leggermente i bordi */
}

/* MAPPA & ORARI (SIXTH SECTION) */
.map-card {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.map-top {
    width: 100%;
    height: 280px;
    background-color: #edebe7;
}

.map-top iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.map-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.map-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hours-row:last-child {
    margin-bottom: 0;
}

.hours-row .days {
    color: #888888;
    font-size: 15px;
    font-weight: 500;
}

.hours-row .hours {
    color: #111111;
    font-size: 15px;
    font-weight: 600;
}

.hours-row.closed .hours {
    color: #888888;
    font-weight: 500;
}

@media (min-width: 768px) {
    .map-card {
        flex-direction: row;
        height: 380px;
    }

    .map-top {
        flex: 1.2;
        height: 100%;
    }

    .map-info {
        flex: 1;
        padding: 40px;
        justify-content: center;
    }
}

/* ========================================================
   FOOTER & ANIMAZIONI
   ======================================================== */
.footer {
    background-color: #111111;
    width: 100%; 
    height: 200px; 
    background-image: repeating-linear-gradient(
        -45deg,
        #c92c2c, #c92c2c 10px,
        #ffffff 10px, #ffffff 20px,
        #2a52be 20px, #2a52be 30px,
        #ffffff 30px, #ffffff 40px
    );
    background-repeat: repeat-x;        
    background-position: top center;    
    background-size: 56.57px 12px;
    padding-top: 60px;
    text-align: center;
    color: #ffffff;
}

.footer h2 {
    color: #ffffff;
    font-size: 22px;
}

.footer_info {
    padding-top: 10px;
    color: #999999;
    font-size: 14px;
}

@keyframes muoviPalo {
    from { background-position: 0 top; }
    to { background-position: 1000px top; }
}