

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

body{
    font-family: "Open Sans", sans-serif;
}

ul{
    list-style: none;
}

ul.logo {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* permette di andare a capo */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

ul.logo li {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.logo li.cani {
    flex: 0 1 40%;
    max-width: 300px;
    height: 320px;
    
}

.logo li.scritta {
    flex: 0 1 60%;
    max-width: 400px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav{
    background-color: rgba(221, 19, 19, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    justify-content:center;
    padding: 10px 0;
    display: flex;
    position: relative;
}

nav ul{
    display: flex;
    gap: 30px;
}

.menu{
    color: whitesmoke;
    text-decoration: none;
    padding: 0 50px;/*0 per sopra e sotto, 10 per destra e sinistra*/
}
.menu:hover{
    color: black;
    background-color: whitesmoke;
    transition: 0.5s;
    border-radius: 10px;
}

.menu-icon{
    display: none;
}

.menu-icon i{
    color: #fff;
    font-size: 30px;
}

.principale{
    position: relative;
    min-height: 100vh;/*la minima altezza del display del device*/
    text-align: center;
    display: flex;
    flex-direction:column;
}


.principale h1{
    font: bold clamp(26px, 6vw, 60px) 'Montserrat Alternates', sans-serif;
    padding: 20px;
    color: rgba(255, 60, 60, 0.8);
    background-color: beige;/*
    margin-top: 15px;
    margin-bottom: 15px;*/
    text-shadow: -1px -1px 0 rgb(250, 250, 250),1px -1px 0 #000, 1px 1px 0 #000;
}


.presentazione{
    display:flex;/*il contenuto è flessibile, lo mette in orizzontale*/
    margin-left:auto;
    margin-right:auto;
    max-width: 160vh;
    justify-content: center;
    background-color: rgba(40,40,40,0.2);
    border-radius: 40px;
    align-items: center;
    gap: 1.5rem;/*
    padding: 1.5 rem;*/
}


.testo-presentazione {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /*
    font-size: clamp(1rem, 2.5vw, 1.25rem);*/
    line-height: 1.5;
}

.marta{
    width: 350px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    margin: 20px;
}

.principale p{
    font: 22px 'Open Sans', sans-serif;
    color: #000;
    text-shadow: -1px -1px 0 rgb(250, 250, 250),1px -1px 0 #000, 1px 1px 0 #000;
    line-height: 1.5;
    flex: 1;
    text-align: left;
}



.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: #3b5998; /* Facebook blu di base */
    font-size: 60px;
    margin-right: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;

    background-color: white;     /* sfondo bianco */
    padding: 5px;               /* spazio interno */
    border-radius: 10%;
    display: inline-flex;        /* centra l'icona */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* ombra opzionale */
}

.social-icons a:last-child {
    color: #e4405f; /* Instagram colore base */
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #000; /* Colore al passaggio del mouse (puoi personalizzarlo) */
    text-decoration: none;
}


.sfondo {
    position: relative;
    z-index: 0;
}

.sfondo::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('foto/pets.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7; /* controlla qui la trasparenza */
    z-index: -1;
}

#servizi {
    text-align: center;
}

#servizi h3 {
    font-size:38px;
    color: #b8b2d3;
    background-color: #f9f9f9;
    margin-left: clamp(20px, 10vw, 250px);
    margin-right: clamp(20px, 10vw, 250px);
}

.trattamenti ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    gap: 130px;
    height: 100%;
}

.trattamenti li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.trattamenti img {
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
}

h4 {
    font-size: 22px;
    color: #000;
    text-shadow: -1px -1px 0 rgb(250, 250, 250),1px -1px 0 #000;
}


#contatti{
    padding: 0px 0;
    background-color: #0f0e9f;
    height: auto;
}

#contatti p{
    font-size: clamp(12px, 2vw, 22px); /* minimo 16px, ideale 2% larghezza viewport, max 22px */
    text-align: center;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: inherit;
    margin-bottom: 10px;
    margin-top: 20px;
    padding: 20px;
}

#contatti a{
    text-decoration: none;
    color: whitesmoke;/*colore ereditario*/
    opacity: 0.8;
    transition: opacity 1000ms;

    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 35px;
}


a:hover{
    opacity: 1;
    transition: opacity 500ms;
    text-decoration: underline;
}

.recapiti {
    padding: 30px;
	display: flex;
    flex-direction: column;
    align-items: center;
	
    font-family: Arial, sans-serif;
}

.titolo-recapiti {
    color: #150d747b;
    font-size: clamp(32px, 18vw, 24px);
    margin-bottom: 10px; /* Spazio sotto il titolo */
    font-weight: bold;
    letter-spacing: 1px;
}

.recapiti p {
    color:#118c7e;
	flex: 1;
	max-width: 40%; /* o altra percentuale desiderata */
	font-size: clamp(12px, 2vw, 16px);
    text-align: center;
    line-height: 1.6;
}

.recapiti a {
    text-decoration: none;
}


.whatsapp{
    position: fixed;
    right: 30px;
    bottom: 80px;
    z-index: 99999;/*serve per posizionarlo sopra a tutto*/
}

.whatsapp a{
    font-size: 85px;
    color: #fff;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    text-align: center;
    line-height: 80px;
    display: block;
    background-color: #00e675;
    box-shadow: 0 3px 12px #00000040;
    transition:0.3s;
}

.whatsapp a:hover{
    background-color: #118c7e;
}


footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #37393a;
    padding: 60px 0;
}

footer ul{
    display: flex;
    margin-bottom: 25px;
    font-size: 40px;
}

footer ul li{
    margin: 0 8px;
}

footer p{
    text-transform: uppercase;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

footer p a{
    color: #fff;
}

/*INIZIO VISUALIZZAZIONE SMARTPHONE*/
@media (max-width:720px){

    header {
        display: flex;
        flex-direction: column;
    }

    nav {
        order: 1;
        width: 100%;
    }

    ul.logo {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    ul.logo li {
        height: 280px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .logo li.cani,
    .logo li.scritta {
        flex-basis: 50%;
    }



    
    nav ul{
        flex-direction: column;
        text-align: center;
        gap: 0;
        overflow: hidden;
    }

    nav ul li{
        padding: 30px;
    }

    .menu-icon{
        display:block;
        position: absolute;
        top: 10px;
        right: 30px;
        z-index: 9999;
    }

    #menuList{
        transition: all 0.5s;
    }

    .principale h1 {
        padding: 3px 5px;
        font-size: 2.5rem; /* 1rem = 16 px*/
        text-shadow: -1px -1px 0 rgb(250, 250, 250),1px -1px 0 #000, 1px 1px 0 #000;
        text-align: center;
    }

    .presentazione {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .marta {
        margin-top: 15px;
    }

    .principale p{
        flex: 1;
        text-align: left;
        font-size: 14px;
    }

    
    #servizi {
        padding: 20px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    #servizi h3 {
        font-size: 24px;
        padding: 10px;
    }

    .trattamenti ul {
        padding-top: 5vh; /* 5% della viewport height */
    }

    .trattamenti li {
        width: auto;
        flex: 0 0 90px;
        text-align: center;
    }

    .trattamenti img {
        width: 60px;
        height: 60px;
    }

    h4 {
        font-size: 14px;
        text-align: center;
    }
    
}
/*FINE VISUALIZZAZIONE SMARTPHONE*/