/**********************
COLOR VARIABLES
***********************/


:root {
    /* Colori principali */
    --color-primary:			 #007022;        /* pulsanti, hover nav, separatori, footer */
    --color-secondary:			 #00992e;      /* overlay portfolio, ecc. */
    --color-contact-accent:		 #008327; /* accenti contact, hover icone social */

    /* Sfondi */
	--color-navbar:				 #004214;
    --color-background-light:	 #ffffff; /* sfondi chiari */
    --color-background-grey:     #f3f3f3;  /* sfondo alternato sezioni */
	--color-background-section:	 #888888;

    /* Testi */
	--color-nav-text:			 #ff0000;
    --color-text-dark:			 #231f20;       /* testi principali scuri */
    --color-text-grey:			 #000000;       /* testi secondari */
    --color-text-light:			 #ffffff;      /* testi chiari su overlay / pulsanti */
    --color-text-muted:			 #000000;      /* testi navbar non attivi */
    --color-text-title:          #9e7d20;

    /* Footer e social */
    --color-footer-text:		 #ffffff;     /* testo footer */
    --color-social:				 #334752;          /* icone social */
    --color-blockquote-footer:	 #999999; /* citazioni footer */

	--color-btn-primary: #3dff78;
	--color-btn-secondary: #84ffa9;
}



/**********************
DEFAULT
***********************/

body {
	padding-top: 90px;
	font-family: 'Crimson Text', serif;
	font-size: 15px;
	color: var(--color-text-grey);
	line-height: 1.7;
}

ul, ol {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.social-list li {
	display: inline-block;
}

.social-list a {
	padding: 20px;
	color: #fff;
	text-decoration: none;
}

p {
	margin: 0;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, label, button, .btn {
	font-family: 'Montserrat', sans-serif;
	/* text-transform: uppercase;  */
	margin: 0;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	display: block;
}

h1, .h1 {
	font-size: 50px;
}

h2 {
	font-size: 25px;
}

h2.section-title {
	color: var(--color-text-dark);
}

h2.section-title:after {
	display: block;
	content: '';
	width: 100%;
	height: 19px;
	background: url('../img/svg/separator.svg') center center no-repeat;
	margin-top: 45px;
}

h5 {
	font-size: 15px;
	letter-spacing: 0.2em;
}

p {
    font-weight: 400;
}

section {
	position: relative;
}

section:nth-child(odd){
	background-color: var(--color-background-light);
}

section:nth-child(even){
	background-color: var(--color-background-light);
}

blockquote {
	padding: 0;
	margin: 0;
	border: 0;
}

form {
	text-align: left;
}

label {
	font-weight: normal;
}

button, .btn {
	font-size: 15px;
}

.form-group {
	margin: 0;
}

.form-control {
	background-color: transparent;
	color: var(--color-background-light);
	border: none;
	border-bottom: 1px solid var(--color-text-muted);
	border-radius: 0;
	transition: all 0.3s ease-out;
}

.form-control:focus {
	border-color: var(--color-background-light);
	box-shadow: none;
}

/**********************
NAVBAR
***********************/

.navbar {
	min-height: 90px;
	font-family: 'Montserrat', sans-serif;
	
}

.navbar-default {
	background-color: var(--color-navbar);
}

.navbar-brand {
	height: 100px;
	padding: 0px;

	display: flex;
    align-items: flex-start;

}

.navbar-brand img {
	max-height: 150px;
	margin-top: -15px;
}

.navbar-default .navbar-nav>li>a {
	font-size: 20px;
	color: var(--color-nav-text);
	padding: 35px 23px;
}

.navbar-default .navbar-nav>li>a:focus, 
.navbar-default .navbar-nav>li>a:hover {
	color: var(--color-text-light);
	background-color: transparent;
}

.navbar-default .navbar-nav>.active>a, 
.navbar-default .navbar-nav>.active>a:focus, 
.navbar-default .navbar-nav>.active>a:hover {
	color: var( --color-text-light);
	background-color: transparent;
}

.navbar-default .navbar-toggle {
	margin-top: 28px;
	margin-bottom: 28px;
	border: 0;
	border-radius: 0;
}

.navbar-default .navbar-toggle .icon-bar {
	background: var(--color-background-light);
}

.navbar-default .navbar-toggle:focus, 
.navbar-default .navbar-toggle:hover {
	background-color: transparent;
}

.navbar-default .navbar-toggle:focus .icon-bar, 
.navbar-default .navbar-toggle:hover .icon-bar {
	background: var(--color-nav-text);
}

@media only screen and (max-width: 767px) {
    .navbar-default .navbar-nav>.active>a, 
    .navbar-default .navbar-nav>.active>a:focus, 
    .navbar-default .navbar-nav>.active>a:hover {
        color: var(--color-primary);
        background-color: transparent;
    }
    .navbar-default .navbar-nav>li>a:focus, 
    .navbar-default .navbar-nav>li>a:hover {
        color: var(--color-primary);
        background-color: transparent;
    }
}

.logo-casaro {
    opacity: 0%;
    height: 0px;
}

@media (max-width: 767px) {
    .logo-casaro {
        position: absolute;
        left: 63%;
        top: 50%;
        transform: translate(-50%, -50%);
        float: none;
        margin: 0;
        height: 70px;
        opacity: 100%;
    }

    .navbar-header {
        position: relative;
    }
}

/* =========================
   HOME SECTION FLEXIBLE
   ========================= */
#home {
    width: 100vw;
    min-height: 870px;
    background: url("../img/header.jpg") no-repeat;
    background-size: cover;
    background-position: center top;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra orizzontalmente */
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
	pointer-events: none;
}

/* HOME TITLE */
.home-title {
    font-size: 100px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5rem;
    margin: 0;
    z-index: 1;
}

.home-title2 {
    font-size: 50px;
    font-weight: 800;
    margin: 10px 0 30px;
    z-index: 1;
}

.text-red {
    color: #ff0000;
}

.text-white {
    color: #ffffff;
}

/* Pulsante */
.btn-hero {
    display: inline-block;
    padding: 14px 34px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background-color: #ff0000;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 2;
	position: relative;
}

.btn-hero:hover {
    background-color: #9b0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* DOWN ICON */
.down-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px) {
    #home{
        background: url("../img/header_mobile.JPG") no-repeat;
        background-position: -25px -0px;
        margin-bottom: -285px;
        background-size: cover;
        background-position: 50% -250px;
    }
    .home-title {
        font-size: 60px;
        letter-spacing: 0rem;
		margin-top: 200px;
    }

    .home-title2 {
        font-size: 30px !important;
        margin: 5px 0 20px;
    }

    .btn-hero {
        font-size: 18px;
        padding: 12px 28px;
    }
}

@media (max-width: 400px) {
    .home-title {
        font-size: 35px;
        letter-spacing: 0rem;
		margin-top: 50px;
    }

    .home-title2 {
        font-size: 18px !important;
        margin: 5px 0 20px;
    }

    .btn-hero {
        font-size: 18px;
        padding: 12px 28px;
    }
}


.home-title,
.home-title2,
.btn-hero {
    opacity: 0;
    transform: translateY(150px);
    transition: all 1.8s ease-out;
}


/**********************
HISTORY SECTION
***********************/

#history .container {
    max-width: 100%; /* oppure 100% per tutta la larghezza */
    padding-left: 0px;
    padding-right: 0px;
	padding-top: 0px;
}

#history {
    background-color: var(--color-background-grey);
    padding: 100px 30px 100px; /* padding laterale più piccolo */
}

.history-content {
    text-align: center;
    max-width: 100%;  /* aumenta questa larghezza per testi più larghi */
    margin: 0 auto;    /* centra il contenitore */
}

.history-content p {
    margin-top: 42px;
    font-size: 20px;
    line-height: 1.7;
    word-break: normal;
    white-space: normal;
}

@media (max-width: 991px) {
	.history-content p {
		margin-top: 42px;
		margin-left: -10px;
		margin-right: -10px;
		font-size: 18px;
	}
}


/**********************
SERVICES SECTION
***********************/

#services .row {
    display: flex;
    justify-content: left; /* centra le colonne orizzontalmente */
    flex-wrap: wrap;         /* permette al layout di adattarsi su mobile */
    gap: 0px;               /* spazio tra le colonne */
}

#services2 .row2 {
    display: flex;
    justify-content: center; /* ✅ */
    align-items: center;     /* allinea anche verticalmente */
    flex-wrap: wrap;
	transform: translateX(-90px); /* sposta orizzontalmente */
}

/* Immagine banchetto con hover */
.banchetto-img {
    width: 450px;
    max-width: 200%;
    border-radius: 15px;
    margin: -50px auto 0;
    display: block;
    transition: transform 0.3s ease;
}

.banchetto-img:hover {
    transform: scale(1.03);
}

#services {
    position: relative; /* necessario per posizionamento assoluto interno */
}

.services-title {
    position: absolute;
    top: 80px;           /* regola la distanza verticale sopra i quadrati */
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;     /* dimensione grande */
    font-weight: 800;
    color: var(--color-text-title); /* semi-trasparente, effetto “cicciotto” ma soft */
    letter-spacing: 0.5rem;
    text-align: center;
    z-index: 0;          /* sotto i quadrati dei servizi */
    pointer-events: none; /* non interferisce con click */
    white-space: nowrap;  /* non va a capo */
    font-family: 'Montserrat', sans-serif; /* stesso font degli h5 dei servizi */
}

.services-title2 {
    position: absolute;
    top: -80px !important;
    left: 50%;
    transform: translateX(-50%);
    
    width: 1000px;       /* spazio sufficiente per il testo lungo */
    max-width: 90vw;     /* non esce dallo schermo */
    
    font-size: 40px !important;
    font-weight: 800;
    color: var(--color-text-title);
    letter-spacing: 0.5rem;
    text-align: center;
    z-index: 0;
    pointer-events: none;
    white-space: normal;  /* ora può andare a capo se necessario */
    font-family: 'Montserrat', sans-serif;
}

/* Assicuriamoci che i servizi siano sopra il titolo */
#services .service {
    position: relative;
    z-index: 1;
}


#services {
	padding: 145px 0;
}

#services2 {
	padding: 30px 0;
}

.service {
	background: var(--color-background-light);
	padding: 58px 61px 98px;
	text-align: center;
}

.service2 {
	background: var( --color-background-light);
	padding: 58px 61px 98px;
	text-align: center;
}

.service .separator {
	width: 30px;
	height: 2px;
	background-color: var(--color-background-section);
	margin: 25px auto 0;
}

.service h5 {
	margin-top: 20px;
	color: var(--color-text-dark);
}

.service p {
	margin-top: 51px;
	font-size: 20px;
}

.service2 p {
	margin-top: 30px;
	font-size: 20px;
	color: var(--color-text-grey);
}

.service2 h2 {
	color: var(--color-text-dark);
	margin-top: -10px;
}
/* ICONE */

#services .service figure img {
    width: 85px;   /* dimensione desiderata */
    height: auto;   /* mantiene le proporzioni */
    display: block; /* centra meglio l’immagine */
    margin: 0 auto; /* centra orizzontalmente */
}

@media (max-width: 991px) {
    #services .service figure img {
        width: 80px; /* più piccole su tablet */
    }
}

@media (max-width: 575px) {
    #services .service figure img {
        width: 60px; /* ancora più piccole su smartphone */
    }
}

/* Titolo Services responsive */
@media (max-width: 991px) {
    .services-title {
        position: relative;   /* da absolute a relative */
        top: auto;            /* rimuove lo spostamento verticale */
        left: auto;           /* rimuove centraggio assoluto */
        transform: none;      /* niente traslazioni */
        text-align: center;   /* centra il testo normalmente */
        font-size: 28px;      /* riduce dimensione */
        white-space: normal;  /* consente di andare a capo */
        margin-top: -80px;     /* spazio sopra, più contenuto */
        margin-bottom: 20px;  /* spazio sotto prima dei box */
    }
}


/* Responsive solo per mobile */
@media (max-width: 991px) {
    /* Titolo */
    .services-title2 {
        font-size: 25px !important;
        top: 20px;
		padding: 0 0px;       /* margine ai lati */
        white-space: normal;   /* permetti il wrap */
        word-break: break-word; /* evita overflow */
		margin-top: -40px;
    }

    /* Row dei servizi */
    #services2 .row2 {
        flex-direction: column;  /* mette i box uno sotto l’altro */
        align-items: center;     /* centra orizzontalmente */
        transform: translateX(0); /* rimuove lo spostamento */
        gap: 20px;               /* spazio tra i box */
		overflow: visible !important;
    }

    /* Box dei servizi */
    .service2 {
        width: 100%;              /* occupa quasi tutta la larghezza del container */
        max-width: 400px;        /* massimo per non diventare troppo largo */
        padding: 30px 20px;      /* padding ridotto */
    }

	.banchetto-img {
		width: 450px;
		max-width: 90%;
		border-radius: 15px;
		margin: 20px auto 0;
		display: inline-block;   /* meglio per trasformazioni */
		transition: transform 0.3s ease;
	}

	.banchetto-img:hover {
		transform: scale(1.03);
	}

    .descrizioni{
		margin-top: 42px !important;
		margin-left: -18px !important;
		margin-right: -18px !important;
		font-size: 18px !important;
	}
}


/**********************
GALLERY SECTION
***********************/

.gallery-title {
    position: absolute;
    top: 60px;           /* regola la distanza verticale sopra i quadrati */
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;     /* dimensione grande */
    font-weight: 800;
    color: var(--color-text-title); /* semi-trasparente, effetto “cicciotto” ma soft */
    letter-spacing: 0.5rem;
    text-align: center;
    z-index: 0;          /* sotto i quadrati dei servizi */
    pointer-events: none; /* non interferisce con click */
    white-space: nowrap;  /* non va a capo */
    font-family: 'Montserrat', sans-serif; /* stesso font degli h5 dei servizi */
}

#gallery {
    padding-top: 175px;
	padding-bottom: 50px;
    background-color: var(--color-background-light); /* colore chiaro di sfondo */
}

#gallery .section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

#gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 250px;        /* altezza fissa per tutte le immagini */
    position: relative;
}

#gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* mantiene proporzioni, taglia ciò che eccede */
    display: block;
    transition: transform 0.3s ease;
}

#gallery .gallery-item img:hover {
    transform: scale(1.05);
}

#gallery .row .col-md-4,
#gallery .row .col-sm-6 {
    margin-bottom: 30px; /* spazio tra le righe */
}


/* Titolo galleria responsive solo per mobile */
@media (max-width: 991px) {
    .gallery-title {
        font-size: 25px;          /* riduce la dimensione del font */
        top: 20px;                /* distanza dal top */
        padding: 0 0px;       /* margine ai lati */
        white-space: normal;   /* permetti il wrap */
        word-break: break-word;    /* evita che esca dai bordi */
    }

	#gallery .gallery-item {
        width: 200px !important;       /* occupa quasi tutto il viewport */
        max-width: 1000px !important; /* limite massimo */
        height: 200px !important;     /* altezza automatica proporzionata */
        margin: 0 auto 20px !important;
    }

    #gallery .gallery-item img {
        width: 100% !important;
        height: 100% !important;     /* mantiene proporzioni */
        object-fit: cover !important; 
        object-position: center ;
    }
        
}


/* ===============================
   CONTACT SECTION MODERN
================================= */
.contact {
    background: none;           /* sfondo sezione trasparente */
    padding: 100px 0px;
    text-align: center;
	margin-top: 10px;
}

.contact-divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border: none;
    margin: 20px auto;
}

/* Titolo grande */
.contact-title {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-primary);
}

/* Pulsante mail */
.contact-btn {
    display: inline-block;
    font-size: 30px;
    font-weight: 600;
    color: #fff;                         /* testo bianco */
    background: #00b348;                 /* verde sempre presente */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
}

.contact-btn:hover {
    background: #007022;                 /* scuro al passaggio */
    color: #fff;
}

/* ===============================
   RESPONSIVE
================================= */

/* Tablet e mobile */
@media (max-width: 991px) {
    .contact {
        padding-bottom: 50px;
        margin-top: -100px;
    }

    .contact-title {
        font-size: 20px !important;
    }

    .contact-btn {
        font-size: 15px;
        padding: 12px 25px;
        display: block;
        margin: 10px auto 0 auto;
    }
}

/* Piccoli schermi */
@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
    }

    .contact-btn {
        margin: 15px auto 0 auto;
    }
}


/**********************
FOOTER SECTION
***********************/
#img_footer {
    display: block;
    margin: -30px auto -80px auto; /* sposta il logo verso l’alto di 20px */
    max-width: 250px;
    height: auto;
}

#footer {
	background: var(--color-navbar);
	color: var(--color-footer-text);
	padding: 20px 0;
	align-items: center;   /* centra orizzontalmente */
}

#footer .copyright {
	font-family: 'Montserrat', sans-serif;
}

.social-buttons {
    margin-top: 30px;       /* distanza dal logo e testi */
    text-align: center;     /* centra i pulsanti */
}

.social-buttons a.btn-social {
    display: inline-block;
    margin: 0 5px;          /* spazio tra i pulsanti */
    width: 40px;
    height: 40px;
    border-radius: 50%;     /* tondi */
    background-color: #333; /* colore base */
    overflow: hidden;
    transition: background-color 0.3s;
}

.social-buttons a.btn-social img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0px auto;       /* centra l’icona nel cerchio */
}

.social-buttons a.btn-instagram:hover {
    background-color: #e1306c; /* rosa Instagram */
}

.social-buttons a.btn-facebook:hover {
    background-color: #3b5998; /* blu Facebook */
}


/**********************
HELPER CLASSES
***********************/

.is-visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.grabbable {
    cursor: move;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.grabbing { 
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

/**********************
RESPONSIVE
***********************/

@media only screen and (max-width: 1199px) {
	
	/**********************
	CONTACT SECTION
	***********************/
	
	#about-subsection, #form-subsection {
		padding: 95px 70px 70px;
		min-height: 560px;
	}

}

@media only screen and (max-width: 991px) {

	/**********************
	SERVICES SECTION
	***********************/
    .service:not(first-of-type) {
        margin-top: 30px;
    }

    /**********************
	CONTACT SECTION
	***********************/

	#about-subsection, #form-subsection {
		padding: 80px;
		min-height: auto;
	}

	#form-subsection {
		margin-top: 55px;
	}

}

@media only screen and (max-width: 767px) {
	
	/**********************
	DEFAULT
	***********************/

	h1, h2, h3, h4, h5, h6 {
		line-height: 1.5;
	}

	/**********************
	NAVBAR
	***********************/

	.navbar-default .navbar-collapse {
        background-color: #ffffff; /* ← colore che vuoi */
    }

	.navbar-default .navbar-nav {
		text-align: left;
		padding-left: 20px;
		text-transform: uppercase;
	}

	.navbar-default .navbar-nav>li>a {
		padding: 20px 0;
	}

	/**********************
	HOME SECTION
	***********************/
	
	.home-content {
		position: absolute;  /* assicurati ci sia */
		width: 100%;
		top: 30%;           /* più alto = più in basso tutto */
		transform: translateY(-50%); /* mantiene centratura */
		text-align: center;
		z-index: 1;
	}
	
	.home-content .h1,
	.home-content h2 {
		font-size: 42px;
	}

	/**********************
	SERVICES SECTION
	***********************/
    .service {
        padding: 30px;
    }

	/**********************
	CLIENTS SECTION
	***********************/
	.single-client-container:not(first-of-type) {
		margin-top: 60px;
	}

	/**********************
	CONTACT SECTION
	***********************/

	#about-subsection, #form-subsection {
		padding: 60px 30px;
		min-height: auto;
	}


	/**********************
	FOOTER SECTION
	***********************/
	#footer {
		text-align: center;
	}

	#footer .social-list {
		float: none;
		margin-top: 45px;
	}

}

@media only screen and (max-width: 575px) {

	/**********************
	HOME SECTION
	***********************/

	.home-content .btn {
		display: block;
		margin: 0 auto;
	}

	.home-content .btn-primary {
		margin-top: 30px;
	}

}

/* ===============================
   FIX STRISCIA BIANCA / RESPONSIVE
   =============================== */
html, body {
    overflow-x: hidden; /* evita scroll orizzontale */
}

#home {
    width: 100vw; /* viewport width, riempie tutta la larghezza */
    overflow: hidden; /* previene scroll interno */
}