:root {
	--maxw: 900px;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Hubot Sans', sans-serif;
	margin: 0;
	padding: 18px;
	display: grid;
	place-items: start center;
	min-height: 100vh;
	color: #111;
	background: #2A7B9B;
	background: linear-gradient(135deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
}

.logo{
height: 40px;
}

.app {
	width: min(100%, var(--maxw));
	margin-top: 62px;
}

.box {
	background: #fff;
	border: 1px solid #d6d6df;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.center {
	text-align: center;
}

button {
	font: inherit;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #ddd;
	background: #f3f4f6;
	cursor: pointer;
	color: #222;
}

buttonX:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

button.primary {
	background: #42b242;
	color: #fff;
	border: none;
	padding: 14px 22px;
	font-size: 1.1rem;
	border-radius: 12px;
	//box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: background-color 100ms linear;
}

button.primary:hover {
	//box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
	//transform: translateY(-1px);
	background: #2A7B9B;
	transition: background-color 400ms linear;
}

button.primary.clicked {
	animation: pulse 0.25s ease-out;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 rgba(0, 0, 0, 0.6);
	}

	50% {
		transform: scale(1.08);
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	}
}

button.primary i {
	display: inline-block;
	/* necessario per transform su alcuni browser */
	transition: transform 0.35s ease;
	will-change: transform;
}

button.primary.clicked i {
	transform: rotate(540deg);
	/* più percepibile di 360 */
}


.row {
	display: grid;
	gap: 12px;
}

label {
	display: grid;
	gap: 6px;
	font-size: 14px;
}

select {

	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
	appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 1L5 5L1 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 12px;
	padding-right: 30px;
	font-size: 16px;
	color: #222;
}


.prompt {
	font-size: clamp(20px, 4vw, 28px);
	line-height: 1.35;
	padding: 18px;
	border-radius: 12px;
	background: #f3f6f0;
	border: 1px dashed #cbd5e1;
	color: cornflowerblue;
	min-height: 120px;
	align-items: center;
	justify-content: center;
	display: flex;
}

.muted-box {
	margin: auto;
	margin: auto;
	z-index: 9999;
	justify-content: center;
	align-items: center;
	display: flex;
}

.muted {
	color: #6b7280;
	font-size: 14px;
}

.actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.favorites {
	margin-top: 20px;
}

.fav-item {
	padding: 10px 12px;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fffdf3;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.hidden {
	display: none !important;
}

.space {
	color: #6b7280;
	font-size: 14px;
}

#hint {
	position: fixed;
	top: 10px;
	background: green;
	color: white;
	padding: 20px;
	border-radius: 12px;
	margin: auto;
	display: none;
}

@media (min-width: 640px) {
	.row.cols-3 {
		grid-template-columns: repeat(3, 1fr);
	};
}

@media (max-width: 640px) {
	.space {
		display: none;
	}
    .logo{
        height: 20px;
    }
}


.header {
	background: #fff;
	width: 100%;
	height: 60px;
	z-index: 1041;
	position: fixed;
	right: 0;
	left: 0;
	top: 0;
	border-bottom: 1px solid #d6d6df;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header div {
	font-size: 24px;

}


/* Brand */
.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
}

.brand a {
	text-decoration: none;
	color: inherit;
}

/* Nav desktop */
.nav ul {
	display: flex;
	align-items: center;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	text-decoration: none;
	font-weight: 500;
	opacity: 0.9;
	color: #222;
}

.nav a:hover,
.nav a:focus {
	opacity: 1;
	text-decoration: underline;
}

/* Hamburger (CSS-only) */
.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
	/* nascosto su desktop */
	width: 2rem;
	height: 2rem;
	position: relative;
	cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: currentColor;
	content: "";
}

.nav-toggle-label span {
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle-label span::before {
	top: -6px;
}

.nav-toggle-label span::after {
	top: 6px;
}

/* Mobile */
@media (max-width: 640px) {
	.nav-toggle-label {
		display: block;
	}

	.nav {
		position: absolute;
		right: 1rem;
		top: 3.2rem;
		background: #fff;
		border: 1px solid #eee;
		border-radius: 8px;
		padding: 0.5rem 0.75rem;
		box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
		display: none;
		/* chiuso di default */
		z-index: 1000;
	}

	.nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	/* Mostra menu quando il toggle è attivo */
	.nav-toggle:checked~.nav {
		display: block;
	}
}


/* Contenitore annunci */
.ad {
	margin: 16px auto;
	background: white;
    display: none;
}

.ad-top,
.ad-bottom {
	width: 100%;
	max-width: 970px;
	background: white;
    display: none;
}

/* Laterali: solo desktop largo */
@media (min-width: 1200px) {
	.ad-side {
		position: fixed;
		top: 120px;
		z-index: 10;
		background: white;
        display: none;
	}

	.ad-left {
		left: 20px;
		width: 160px;
	}

	/* usa 160x600 */
	.ad-right {
		right: 20px;
		width: 160px;
	}

	/* o 300x600 se allarghi */
}

/* Evita CLS: riserva spazio a top/bottom */
.ad-reserved {
	min-height: 100px;
	/* 320x100 mobile / 728x90 desktop */
}

@media (min-width: 768px) {
	.ad-reserved {
		min-height: 90px;
	}
}

/* Nascondi laterali su mobile/tablet */
@media (max-width: 1290px) {
	.ad-side {
		display: none;
	}
}


#cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	width: 300px;
	padding: 0;
	margin: 0;
	z-index: 9999;
}

#cookie-banner .cb-inner {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

#cookie-banner .cb-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .5rem
}

#cookie-banner button {
	padding: .5rem .8rem;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f6f7f8;
	cursor: pointer
}

#cookie-banner #cb-accept {
	background: #111;
	color: #fff;
	border-color: #111
}



/* internal pages */

  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

  .team{padding:2rem 1rem;}
  .team-grid{
    display:grid;
    gap:1.25rem;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items:start;
  }
  @media (max-width: 900px){
    .team-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 560px){
    .team-grid{ grid-template-columns: 1fr; }
  }

  .member{
    text-align:center;
    margin:0;
  }
  .member img{
    display:block;
    margin-inline:auto;
    width:160px;
    height:160px;
    object-fit:cover;          /* ritaglia in modo pulito */
    border-radius:50%;         /* cerchio */
    border:4px solid #fff;     /* “badge” pulito su sfondo */
    box-shadow:0 2px 12px rgba(0,0,0,.08);
  }
  .member .name{
    margin-top:.75rem;
    font-weight:700;
    color:var(--ink);
    font-size:1.05rem;
    line-height:1.2;
  }
  .member .role{
    margin-top:.25rem;
    color:var(--muted);
    font-size:.95rem;
  }
  
  .white{
    color: #FFF;
  }
  
  .white-box{
    padding: 20px; background: white; font-size: 18px; line-height: 2; border-radius: 12px; 
  }
  
  
/* email form */

    .form-box{
        padding:20px;
        background: #f0f0f0;
        margin-top:20px;
        width:auto;
        box-sizing: border-box;
        border-radius: 8px;
    }

 
  .form-box input,textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:8px;margin-bottom:10px;box-sizing: border-box;}
  .form-box button{margin-top:14px;padding:8px 18px;border-radius:10px;border:0;cursor:pointer;background:#42b242;color:#FFF;}
  .form-box .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .form-box .msg{margin:16px 0;padding:12px;border-radius:8px;display:none}
  .form-box .ok{background:#e8f8ec;border:1px solid #5dbb74}
  .form-box .err{background:#fdeaea;border:1px solid #e26a6a}
  /* honeypot (anti-bot) */
  .form-box .hp{position:absolute;left:-50000px;top:auto;width:1px;height:1px;overflow:hidden}
  
  
  
