
html {
	scroll-behavior: smooth; 
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	background-color: #466737;
	--supplea-green:#466737;
	
}

html, body {
	padding: 0px;
	margin: 0px;
}

/* Header e Navbar */
header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.container {
}

.navbar {
	background-color: #466737;
	padding: 1rem 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	
	width:100%;
	overflow:hidden;
	
	display: flex;
	justify-content: space-between;
	align-items: center;
	justify-content: center;
}

.logo {
}

.logo img {
	height: 190px;
	width: 400px;
	position:absolute;
	left:calc(50% - 200px);
}

.logo .sky {
	height:108px;
	background:white;
	background-image: url('images/erba.png');
	background-position: bottom;
	background-size: auto 16px;
	background-repeat:repeat-x;
}

.logo .grass {
	height:80px;
	background:#466737;
}


.logo-text {
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
	margin-left: 10px;
}

.nav-links {
	display: flex;
	list-style: none;
	padding:0 4px;
}

.nav-links li {
	margin: 0 15px;
}

.nav-links a {
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 500;
	transition: color 0.3s ease;
	padding: 4px;
}

.nav-links a:hover {
	color: #3498db;
	background-color: rgba(255,255,255,0.1);
}


/* Contenuto principale */
.main-content {
	padding: 2rem 0;
	border:6px solid #788f6e;
	border-radius:16px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);
	margin:12px;
	
	background-color:rgb(237, 253, 237);
	background-image: url('images/panorama.png');
	background-position: bottom;
	background-size: auto fill;
	background-repeat:no-repeat;
}


.btn {
	display: inline-block;
	background-color: #e74c3c;
	color: white;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.btn:hover {
	background-color: #c0392b;
}

/* Sezioni principali */
.section {
	padding: 1rem 0;
}

.section-title {
	text-align: center;
	margin-bottom: 1rem;
	color: #0e5304;
	font-size: 2rem;
}

h2.section-title {
	font-size: 2rem;
}

h3.section-title {
	font-size: 1.4rem;
}


.section-content {
	margin:2rem;
	font-size: 1.2rem;
}

.articoli .linea-articoli {
	font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
}

.articolo {
	padding-bottom: 2rem;
}

.articolo .nome-articolo {
	font-size: 1.4rem;
  font-weight: bold;
  text-decoration: underline;
}


.articolo .dettagli-articolo {
	display: flex;
}

.articolo .dettagli-articolo .ingredienti-articolo {
	flex: 1;
}

.articolo .dettagli-articolo .ingredienti-articolo label{
	font-weight: bold;
	font-style: italic;
	padding-right: 4px;
}


.articolo .dettagli-articolo .tabella-articolo {
	flex: 1;
}


.articolo table {
	width: 100%;
	border:3px solid black;
	border-radius: 16px;
	border-spacing: 0;
	background-color: white;
	overflow: hidden;
}

.articolo table tr td {
	padding: 0 4px;
}

.articolo table tr.break td {
	border-top: 1px solid black;
}
.articolo table tr td:nth-child(1) {
	font-size: 1rem;
	font-weight:bold;
}

.articolo table tr td:nth-child(2) {
	font-size: 0.9rem;
	font-weight:bold;
}


.articolo table tr td:nth-child(2), .articolo table tr td:nth-child(3), .articolo table tr td:nth-child(4) {
	text-align: right;
}

.articolo table tr td:nth-child(3), .articolo table tr td:nth-child(4){
	border-left: 1px solid black;
}

.articolo table tr.intestazione td {
	font-size: 1.2rem;
	text-align: center;
	font-weight: bold;
}
.articolo table tr.sub td {
	font-size: smaller;
	font-weight: normal;
}

.articolo table tr.energia {
	background-color:#fdf1f6;
}

.articolo table tr.grassi {
	background-color:#fdd189;
}

.articolo table tr.carboidrati {
	background-color:#fffced;
}

.articolo table tr.fibre {
	background-color:#eff7fe;
}

.articolo table tr.proteine {
	background-color:#bec8b7;
}

.articolo table tr.sale {
	background-color:#c2ddf5;
}


.cards {
	display: flex;
	justify-content: center;
}

.card {
	background-color: white;
	margin: 1em;
	padding: 2rem;
	transition: transform 0.3s ease;
	text-align: center;
	border:1px solid lightgray;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);

}

.card:hover {
	transform: translateY(-5px);
}

.card h3 {
	color: #2c3e50;
	margin-bottom: 1rem;
}

.card .contatto {
	display: flex;
	align-items: center;
	justify-items: center;
}
.card .contatto img {
	height: 3em;
}

.card .contatto a {
	height: 1.4rem;
    padding-left: 1em;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: blue;
}

.card .punto-vendita .punto-vendita-nome {
	font-size: 1.4rem;
	font-weight: bold;
}

.card .punto-vendita .punto-vendita-indirizzo {
	display: flex;
	align-items: center;
}

.card .punto-vendita a {
    text-decoration: none;
}

.card .punto-vendita a img {
	height: 1.5rem;
}

/* Footer */
footer {
	background-color: var(--supplea-green);
	color: white;
	text-align: center;
	padding: 3rem 0;
	margin-top: 3rem;
	display:flex;
	align-items:center;
	justify-content:center;
	
}

footer .fiscali {
	text-align: left;
    flex: 1;
    padding-left: 60px;
}

footer .pr-fesr img {
	max-width:50vw;
    padding-right: 60px;
	
}


/* Stili per le sezioni di destinazione */
.section[id] {
	scroll-margin-top: 250px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
}

@media screen and (max-width: 480px) {
	.logo img {
		height: 100px;
		width: 200px;
		left:calc(50% - 100px);
	}
	
	.logo .sky {
		height:60px;
	}

	.logo .grass {
		height:24px;
	}
	
	.nav-links a { 
	  font-size:1rem;
	}

	.section-content {
		margin:1rem;
		font-size: 1.2rem;
	}

	
	.section[id] {
		scroll-margin-top: 130px;
	}

	.articolo .dettagli-articolo {
		flex-direction: column;
	}

	.cards {
		flex-direction: column;
	}

	
	footer {
		flex-direction:column;
		
	}
	
	footer .pr-fesr img {
		max-width:90vw;
		padding-right: unset;
	}
}
