/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */
/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box;
}

body {
	/* max-width: 1600px;  */
	margin: 0 auto; 
}

body, td, input[type=text], textarea {
	font-family: 'Inter', sans-serif;
	font-size: 100%; 
	font-style: normal;
  	font-variation-settings:"wdth" 87.5;
	font-optical-sizing: auto;
	line-height: 1.8em;
	background-color: #f8f9fa;
    color: #212529;
}

/* HOME PAGE BRAGHINI */
header {
      background-color: #ffffff;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.logo {
      font-weight: 800;
      font-size: 1.5rem;
      color: #0056b3;
}
.hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 5rem 2rem;
    }
.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	font-weight: 800;
	color: #003366;
}
.hero p {
	font-size: 1.2rem;
	max-width: 600px;
	margin-bottom: 2rem;
}
.hero .accedi {
      padding: 0.7rem 2rem;
      background-color: #0056b3;
      color: white;
      font-weight: 600;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: background 0.3s;
    }
.hero .accedi:hover {
	background-color: #003f88;
}

.features {
	padding: 4rem 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: auto;
}
.feature {
	background: white;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.feature h3 {
	color: #0056b3;
	font-size: 1.2rem;
  	font-weight: 800;
}

/* HOME END */
form.LoginForm {
	background: #fff !important;
	padding: 1.5rem !important;
	border-radius: 0.5rem !important;
	border: 1px solid #ebebeb !important;
}

img {
	max-width: 100%; 
}

h3 {
	color: #777;
}

a {
	color: #1b1b1b;
	text-decoration: none;
	border-bottom: 1px solid #1b1b1b; 
}
	a:hover,
	.nav a:hover {
		color: #e61414;
		border-color: #e61414; 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

pre, code {
	background: #eee; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #ddd; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */

.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0;
}
	.topnav li {
		float: left; 
		margin-right: 1em;
		margin-bottom: 1em;
	}
	.topnav a {
		padding: 0.25em 0.5em;
		text-decoration: none; 
		display: block;
		background: #eee; 
		color: #333; 
		border: 1px solid #eee; 
	}
	.topnav a:hover {
		background: #ddd;
		border-color: #ddd; 
	}
	.topnav li.current a {
		background: #ccc; 
		border-color: #ccc; 
	}
	.topnav li.edit a {
		background: none; 
	}


form.search {
	float: right; 
	margin: 0;
	width: 30%; 
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		width: 100%; 
	}

.breadcrumbs {
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main { 
	margin-top: 1em; 
	clear: both; 
}

#content {
	padding-bottom: 4em; 
}

#sidebar {
	padding-bottom: 2em; 
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: none;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
		padding-right: 1rem;
	}

	.nav a {
		font-weight: bold;
	}

	.nav-tree li a {
		color: #777; 
	}

	.nav .current > a {
		color: #333; 
	}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

div.strcontent{
    min-height: 400px;
}

main.azienda div.referenti{
    border-bottom: 1px solid #eee;
}

main.azienda div.toggle-referenti{
    display: inline-block;
    cursor: pointer;
}
main.azienda div.toggle-referenti:hover{
    background-color: #eee;
}
.notes{
    background-color: lightyellow;
	font-size: 0.8rem;
  	padding: 0 0.5rem;
	line-height: 1.5em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	text-align: center;
	/* padding: 2rem; */
	padding-bottom: 1rem;
	background-color: #e9ecef;
	font-size: 0.9rem;
	color: #6c757d;
	clear: both; 
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

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

	body, td, textarea {
		font-size: 100%; 
	}
	#content, 
	#sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
	}
	form.search {
		float: none; 
		width: 100%; 
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 100%; 
	}
}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
