
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Arial',sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;

}

.banner {
    background: linear-gradient(135deg,#1e3c72 0%,#2a5298 100%);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;

}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

}

.contact-btn {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease,box-shadow 0.3s ease;
    cursor: pointer;

}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

}

.phone-btn {
    background: #25d366;

}

.whatsapp-btn {
    background: #25d366;

}

.whatsapp-btn img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.744));

}

.contact-btn svg {
    width: 40px;
    height: 40px;
    fill: white;

}

.logo-container {
    flex: 1;
    text-align: center;

}

.logo-container img {
    max-width: 200px;
    height: auto;

}

.business-name {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

}

.business-name em {
    font-size: 0.7em;

}

/*banner*/

.profile-description {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin: 30px 0;
}

.gallery-section {
    background: white;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

.gallery-title {
    text-align: center;
    font-size: 2em;
    color: #1e3c72;
    margin-bottom: 30px;

}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;

}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;

}

.slide {
    min-width: 100%;
    position: relative;

}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;

}

/*.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;

}*/

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    z-index: 10;

}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);

}

.slider-btn.prev {
    left: 20px;

}

.slider-btn.next {
    right: 20px;

}

.slider-dots {
    text-align: center;
    padding: 20px 0;

}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s ease;

}

.dot.active {
    background: #1e3c72;
    width: 30px;
    border-radius: 6px;

}

/*Gallery photo*/

.profile-section {
    background: white;
    padding: 60px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.profile-content {
    max-width: 900px;
    margin: 0 auto;

}

.profile-header {
    text-align: center;
    margin-bottom: 40px;

}

.profile-name {
    font-size: 2.5em;
    color: #1e3c72;
    margin-bottom: 10px;

}

/*.profile-subtitle {
    font-size: 1.3em;
    color: #666;
    font-style: italic;

}

.profile-details {
    background: #f8f9fa;
    border-left: 4px solid #1e3c72;
    padding: 30px;
    margin: 30px 0;
    border-radius: 5px;

}

.detail-item {
    margin: 20px 0;
    font-size: 1.1em;

}

.detail-item strong {
    color: #1e3c72;
    display: inline-block;
    min-width: 150px;

}*/

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;

}

.service-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;

}

.service-item h4 {
    color: white;

}

.service-item:hover {
    transform: translateY(-5px);

}

.service-icon {
    font-size: 2.5em;
    margin-bottom: 10px;

}

/*stile del profilo dell'idraulico*/

.reviews-section {
    background: white;
    padding: 60px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.reviews-title {
    text-align: center;
    font-size: 2em;
    color: #1e3c72;
    margin-bottom: 40px;

}

.rating-summary {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;

}

.overall-rating {
    font-size: 4em;
    color: #1e3c72;
    font-weight: bold;

}

.overall-stars {
    color: #ffc107;
    font-size: 2em;
    letter-spacing: 5px;
    margin: 10px 0;

}

.reviews-scroll-container {
    position: relative;
    margin: 40px 0;

}

.reviews-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: #1e3c72 #e0e0e0;

}

.reviews-wrapper::-webkit-scrollbar {
    height: 8px;

}

.reviews-wrapper::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;

}

.reviews-wrapper::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 10px;

}

.reviews-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2a5298;

}

.review-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #28a745;
    padding: 25px;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}



/*.delete-review-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.2s ease;

}

.delete-review-btn:hover {
    background: #c82333;
    transform: scale(1.05);

}

.review-card:hover {
    transform: translateX(5px);

}*/

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;

}

.reviewer-name {
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.2em;

}

.review-stars {
    color: #ffc107;
    font-size: 1.3em;
    white-space: nowrap;

}

.review-date {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;

}

.review-text {
    color: #333;
    line-height: 1.8;
    font-size: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.read-more {
    color: #1e3c72;
    font-size: 0.9em;
    margin-top: 10px;
    text-decoration: underline;
    cursor: pointer;
    display: none;

}

.review-card.truncated .read-more {
    display: block;

}

/*card delle recensioni*/

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;

}

.modal-overlay.active {
    display: flex;

}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;

}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;

}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);

}

.modal-reviewer {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;

}

.modal-stars {
    font-size: 2em;
    color: #ffc107;
    letter-spacing: 3px;

}

.modal-date {
    margin-top: 10px;
    opacity: 0.9;
    font-size: 0.95em;

}

.modal-body {
    padding: 30px;

}

.modal-review-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
    text-align: justify;

}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    text-align: center;

}

.share-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;

}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

}

.share-btn.facebook {
    background: #1877f2;

}

.share-btn.instagram {
    background: #fa7e1e;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }

}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/*popup modale a comparsa*/

.review-card {
    position: relative;

}

.review-card::after {
    content: "👆 Clicca per leggere tutto";
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(30, 60, 114, 0.9);
    color: white;
    padding: 5px;
    border-radius: 20px;
    font-size: 0.75em;
    opacity: 0;
    transition: opacity o.3s ease;
    pointer-events: none;

}

.review-card:hover::after {
    opacity: 1;

}

/*effetto click sulla card*/

.scroll-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;

}

.scroll-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
}

.scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);

}

.scroll-btn:active {
    transform: translateY(0);

}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;

}

/*bottoni di navigazione*/

.scroll-indicator {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;

}

.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;

}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;

}

.scroll-dot.active {
    background: #1e3c72;
    width: 30px;
    border-radius: 5px;

}

/*indicatori scroll*/

@media (max-width: 768px) {
    .review-card {
        min-width: 280px;
        max-width: 280px;

    }
    .reviews-title {
        font-size: 1.5em;

    }
    .overall-rating {
        font-size: 3em;

    }
    .scroll-btn {
        padding: 10px;
        font-size: 0.9em;

    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-card {
    animation: slideInRight 0.5s ease;

}

/*animazione entrata*/

.new-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 10px;

}

/*badge nuova recensione*/

.review-form-section {
    background: #e8f4f8;
    border: 2px solid #54c7ec;
    border-radius: 10px; 
    padding: 40px; 
    margin-top: 40px;

}

.form-title {
    text-align: center;
    font-size: 1.8em;
    color: #1e3c72;
    margin-bottom: 30px;

}

.form-group {
    margin-bottom: 25px;

}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1em;

}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;

}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;

}

.form-group textarea {
    min-height: 120px;
    resize: vertical;

}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 2.5em;
    flex-direction: row-reverse;
    justify-content: flex-end;

}

.star-rating input {
    display: none;

}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;

}

.star-rating input:checked + label, .star-rating label:hover, .star-rating label:hover ~ label {
    color: #ffc107;

}

.star-rating input:checked + label ~ label {
    color: #ffc107;

}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 30px auto 0;

}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

}

.message {
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
    display: none;

}

.message .show {
    display: block;
    animation: slideDown 0.5s ease;

}

.message .success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;

}

.message .error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;

}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px);}
    to { opacity: 1; transform: translateY(0);}
    
}

.footer-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 20px;
    margin-top: 20px;

}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

}

.footer-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;

}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;

}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: background 0.3s ease;

}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);

}

.contact-icon {
    font-size: 3em;
    margin-bottom: 15px;

}

.contact-label {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;

}

.contact-value {
    font-size: 1.2em;

}

.contact-value a {
    color: white;
    text-decoration: none;

}

.contact-value a:hover {
    text-decoration: underline;

}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);

}

/*contatti nel footer*/

@media (max-width: 768px) {
    .banner-content {
        flex-wrap: wrap;

    }

    .contact-btn {
        flex: 0 0 60px;
        height: 60px;

    }

    .contact-btn img {
        width: 30px;
        height: 30px;

    }

    .logo-container {
        order: -1;
        flex: 1 1 100%;

    }

    .business-name {
        font-size: 1.3em;

    }

    .slide img {
        height: 300px;

    }

    .profile-name {
        font-size: 1.8em;

    }

    .overall-rating {
        font-size: 3em;

    }

    .services-list {
        grid-template-columns: 1fr;

    }

}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/*tuttala parte responsive per cellulari*/

/* ===== Mobile banner: all on one row + oval logo ===== */
@media (max-width: 480px) {
    .banner {
        padding: 10px;
    }

    .banner-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
    }

    .contact-btn {
        flex: 0 0 48px;
        height: 48px;
        border-radius: 50%;
        padding: 0;
    }

    .contact-btn img {
        width: 22px;
        height: 22px;
    }

    .logo-container {
        order: 0;
        flex: 0 0 auto;
        width: 140px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 999px; /* oval */
        overflow: hidden;
        padding: 6px 10px;
        background: rgba(255,255,255,0.12);
    }

    .logo-container img {
        height: 36px;
        width: auto;
        display: block;
        object-fit: contain;
    }

    /* Titolo sempre sotto il logo in formato più piccolo */
    .business-name {
        display: block;
        font-size: 0.75em;
        color: white;
        font-weight: bold;
        margin-top: 6px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}
