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

/* General Styles */
body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.logo {
    padding-left: 20px;
    padding-top: 5px;
}

.container-menu {
    background-color: rgba(255, 255, 255, 0.852);
    border-radius: 5px;
}

/* Container */
.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

/* Menu */
.menu ul {
    padding-top: 10px;
}


/* Header */
header {
    color: #333;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffffbe; /* Ensure background color for fixed header */
}

header .logo {
    float: left;
}

header nav {
    float: right;
}

header ul {
    list-style: none;
}

header ul li {
    display: inline;
    margin-left: 20px;
}

header ul li a {
    color: rgba(1, 1, 51, 0.952);
    padding-right: 20px;
    text-decoration: none;
    
}



/* Hero Section */
.hero {
    background-image: url(images/ringraziamenti.webp);
    background-size: cover;
    background-position: center;
    height: 400px;
    color: #333;
    padding: 100px 0;
    text-align: center;
    margin-top: 70px; /* Offset for fixed header */
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

@media screen and (max-width: 360px) {
    .hero h2 {
        font-size: 2em;
    }
}

.hero-title, .hero-subtitle {
    color: bisque;
}

h3{
    color: bisque;
   text-shadow: #070707 0px 0px 10px;
}

/* Grid for Section 2 */
.grid {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.col-70, .col-30 {
    box-sizing: border-box;
    padding: 15px;
}

.col-70 {
    width: 70%;
   
}

.col-30 {
    width: 30%;
    max-width: 600px;
}

.col-33{
    width: 33.33%;
    padding: 20px;
    border: #3333335e solid 1px;
    border-radius: 5px;
    box-shadow: #1f5edc1e 0px 0px 10px 2px;
}

.col-50{
    width: 50%;
    padding: 20px;
}



.section-title{
  font-size: 36px;
  color: rgba(255, 102, 0, 0.959);
}

.section-title2 {
    font-size: 36px;
    color: rgba(255, 102, 0, 0.959);
    background-color: #33333311;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Puoi regolare questa altezza in base alle tue esigenze */
    margin: 0 auto 20px auto; /* Center the element horizontally with top and bottom margin */
    padding: 20px; /* Padding around the text */
    border-radius: 5px;
}

.section-title-col{
    color: rgba(1, 1, 51, 0.952);
}




.section {
    padding: 30px 0; /* Added padding */
    text-align: center;
    margin-bottom: 24px; /* Ensure space between sections */
}

.section h2 {
    margin-bottom: 20px;
  
}

.section-text-adress{
    font-weight: bold;
    color: rgba(1, 1, 51, 0.952);
}

.section-text{
    color: rgba(1, 1, 51, 0.952);
}

.section-text2{
    text-align: justify;
    font-size: 24px;
    color: rgba(1, 1, 51, 0.952);
}

.section-text3{
    text-align: justify;
    max-width: 100%; /* Ensure it doesn't overflow the column */
    margin: 0 auto; /* Center it horizontally */
    color: rgba(1, 1, 51, 0.952);
}

.indiris{
    color: #a24201;
}

.sub-lab{
    font-style: italic;
    color: rgba(1, 1, 51, 0.952);
    padding-bottom: 15px;
}



#section2 {
    background-color: #3333331e;
}

#section3 {
    background-color: #55545411;
}

/*@media screen and (max-width: 1680px) {
    .section h2 {
        font-size: 2em;
    }
}

@media screen and (max-width: 1355px) {
    .section h2 {
        font-size: 1.5em;
    }
}*/


/* Social */
.contenitore-social {
    background-image: url(img/socialBack.jpg);
    background-size: cover; /* Ensures background covers the entire area */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the background from repeating */
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically */
    height: 300px;
    width: 100%; /* Ensures the container spans the full width */
}

.social-links {
    display: flex; /* Enables flexbox for the social links */
    gap: 120px; /* Adds space between social icons */
}

.social {
    padding: 0 10px; /* Optional: Adjust padding as needed */
    text-decoration: none;
    
}





/* Call to Action */
.cta {
    background: #333333a8;
    color: #fff;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 100px; /* Ensure margin at bottom to separate from footer */
}

.cta .cta-button {
    display: inline-block;
    background:  #4ecef2f1;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.cta-tel{
    padding-top: 25px;
    font-weight: bold;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

@media (min-width: 800px) and (max-width: 840px) {
    /* Your styles go here */
    .logo-round{
        width: 250px;
        height: 250px;
    }
}


@media (max-width: 1080px) {
    header ul li a {
        font-size: 16px; /* Smaller font size for screens smaller than 1080px */
    }
}

@media (max-width: 850px) {
    header ul li a {
        font-size: 14px; /* Smaller font size for screens smaller than 850px */
    }
}


@media (max-width: 1080px) {
    header ul li a {
        font-size: 16px; /* Smaller font size for screens smaller than 1080px */
    }
}

@media (max-width: 850px) {
    header ul li a {
        font-size: 14px; /* Smaller font size for screens smaller than 850px */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .logo, header nav {
        float: none;
        text-align: center;
    }

    header nav ul {
        padding: 0;
        flex-direction: column; /* Stack menu items vertically */
    }

    header nav ul li {
        margin: 5px 0;
    }

    .container {
        width: 100%;
        padding: 0 20px;
    }

    .col-70, .col-30, .col-33, .col-50 {
        width: 100%;
        clear: both;
        margin-bottom: 20px; /* Add space between stacked columns */
    }

    .section {
        width: 100%;
        clear: both;
    }

     .contenitore-social{
        height: 350px;
        }

    .social-links {
        flex-direction: column; /* Stack icons vertically */
        gap: 20px; /* Space between icons */
    }
.section-text2{
    font-size: 18px;
    line-height: 1.5;
}
.section-text3{
    font-size: 18px;
    line-height: 1.5;
}
.section-title{
    font-size: 20px;
}
.section-title2{
    font-size: 30px;
}
.section-title3{
    font-size: 30px;
    line-height: 1.5;
}
}


/* iPhone Pro Max specific styles */
@media (max-width: 430px) {
    header ul li a {
        font-size: 12px; /* Smaller font size */
        padding-right: 4px; /* Reduced padding */
        margin-left: 4px; /* Reduced margin */
    }
     footer{
        position: relative;
    }
}


/* iPhone 12  specific styles */
@media (max-width: 390px) {
    header ul li a {
        font-size: 10px; /* Smaller font size */
        padding-right: 4px; /* Reduced padding */
        margin-left: 4px; /* Reduced margin */
    }
}

/* Piccoli e sfigati */
@media (max-width: 360px) {
    .section-title{
        font-size: 16px;
    }
}

/* iPhone 12  specific styles */
@media (max-width: 362px) {
    header ul li a {
        font-size: 9px; /* Smaller font size */
        font-weight: bold;
        padding-right: 3px; /* Reduced padding */
        margin-left: 3px; /* Reduced margin */
    }
     .section-title{
        font-size: 18px;
    }
}

/* Media query for devices with width up to 768px (iPad Mini and similar devices) */
@media screen and (max-width: 430px) {
   .menu ul{
    padding-top: 0px;
   }
}


/* Media query for devices with width up to 768px (iPad Mini and similar devices) */
@media screen and (max-width: 768px) {
    header {
        padding-top: 2px; /* Reduced padding to decrease header height */

    }
}



/* Media query for devices with width up to 768px (iPad Mini and similar devices) */
@media screen and (max-width: 430px) {
    footer {
        padding: 12px 0; /* Reduced padding */
    }
    
    footer {
        font-size: 14px; /* Smaller font size */
    }
}