/*
Theme Name: Genesis Child
Theme URI:
Description: This is the child theme created for the Genesis Framework.
Author: Lilli
Version 1.0

Template: genesis
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Text Domain: genesis-child
Requires at least: 6.0
Requires PHP: 7.4
*/


/* HTML5 Reset
---------------------------------------------------------------------------- */

/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
---------------------------------------------------------------------------- */
/* stylelint-disable */
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}
/* stylelint-enable */

/* Box Sizing
--------------------------------------------- */

html {
	box-sizing: border-box;
}

@font-face {
    font-family: 'Racing Sans One';
    src: url('fonts/racingsansone-regular.woff2') format('woff2'),
         url('fonts/racingsansone-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-regular.woff2') format('woff2'),
         url('fonts/poppins-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-semibold.woff2') format('woff2'),
         url('fonts/poppins-semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== Tipografia ===== */
body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  font-weight: 400;
  background: #fff;
  font-size: 16px !important;
  line-height: 1.3 !important;
}
h1, h2, h3, h4, h5 {
  font-family: 'Racing Sans One', Arial, Helvetica, sans-serif !important;
  font-weight: normal;
  text-transform: uppercase;
}

strong, b,
button, .button, .btn,
input[type="submit"] {
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  font-weight: 600;
}


*,
*::before,
*::after {
	box-sizing: inherit;
}


/* Defaults
---------------------------------------------------------------------------- */

/* Typographical Elements
--------------------------------------------- */


button,
input:focus,
input[type="button"],
input[type="reset"],
input[type="submit"],
textarea:focus,
.button,
.gallery img {
	transition: background-color 0.2s ease-in-out, 
                color 0.2s ease-in-out; 
}

a {
	color: #0073e5;
	text-decoration: underline;
	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

a:focus,
a:hover {
	color: #000;
	text-decoration: none;
}

p {
	margin: 0 0 28px;
	padding: 0;
}

ol,
ul {
	margin: 0;
	padding: 0;
}

li {
	list-style-type: none;
	margin-bottom: 10px;
}

hr {
	border: 0;
	border-collapse: collapse;
	border-bottom: 1px solid currentColor;
	clear: both;
	color: #eee;
	margin: 1.65em auto;
}

b,
strong {
	font-weight: 700;
}

blockquote,
cite,
em,
i {
	font-style: italic;
}

mark {
	background: #ddd;
	color: #000;
}

blockquote {
	margin: 30px;
}

/* Headings
--------------------------------------------- */

/* Tipografia fluida per titoli e paragrafi */
    /* H1 */
    @media screen and (max-width: 480px) {
      h1 { font-size: 26px; }
    }
    @media (min-width: 481px) and (max-width: 768px) {
      h1 { font-size: calc(30px + 0.25 * min(1vw, 1vh)); }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      h1 { font-size: calc(32px + 0.35 * min(1vw, 1vh)); }
    }
    @media (min-width: 1025px) and (max-width: 1979px) {
      h1 { font-size: calc(34px + 0.5 * max(1vw, 1vh)); }
    }
    @media (min-width: 1980px) {
      h1 { font-size: calc(36px + max(1vw, 1vh)); }
    }

    /* H2 */
    @media (min-width: 320px) and (max-width: 480px) {
      h2 { font-size: 22px; }
    }
    @media (min-width: 481px) and (max-width: 768px) {
      h2 { font-size: calc(24px + 0.20 * min(1vw, 1vh)); }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      h2 { font-size: calc(26px + 0.25 * min(1vw, 1vh)); }
    }
    @media (min-width: 1025px) and (max-width: 1979px) {
      h2 { font-size: calc(28px + 0.30 * min(1vw, 1vh)); }
    }
    @media (min-width: 1980px) {
      h2 { font-size: calc(30px + 0.35 * min(1vw, 1vh)); }
    }

    /* H3 */
    @media (min-width: 320px) and (max-width: 480px) {
      h3 { font-size: calc(17px + 0.12 * min(1vw, 1vh)); }
    }
    @media (min-width: 481px) and (max-width: 768px) {
      h3 { font-size: calc(19px + 0.15 * min(1vw, 1vh)); }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      h3 { font-size: calc(20px + 0.20 * min(1vw, 1vh)); }
    }
    @media (min-width: 1025px) and (max-width: 1979px) {
      h3 { font-size: calc(21px + 0.25 * min(1vw, 1vh)); }
    }
    @media (min-width: 1980px) {
      h3 { font-size: calc(23px + 0.28 * min(1vw, 1vh)); }
    }

    /* Paragrafi */
    
    @media (min-width: 320px) and (max-width: 1199px) {
      p {
        font-size: 16px;
      }
    }
    @media (min-width: 1200px) and (max-width: 1979px) {
      p {
        font-size: calc(16px + 0.22 * min(1vw, 1vh));
      }
    }
    @media (min-width: 1980px) {
      p {
        font-size: calc(18px + 0.25 * min(1vw, 1vh));
      }
    }

p, .textarea p {
  padding: 0 !important;
  line-height: 1.3;
}

p:last-child {
	margin-bottom: 0 !important;
}

div > h1:first-child,
div > h2:first-child,
div > h3:first-child {
  margin-top: 0 !important;
  margin-bottom: 25px;
}



.entry-content h3,
.entry-content h4 {
	font-weight: 600;
}

.entry-content h4 {
	margin-top: 20px;
}
/*
h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
} */

/* Objects
--------------------------------------------- */

embed,
iframe,
img,
object,
video,
.wp-caption {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: top;
}

figure {
	margin: 0;
}

.no-margin {
	margin: 0 !important;
}

.hidden {
    height: 0px !important;
}

/* Gallery
--------------------------------------------- */

.gallery {
  display: grid;
  gap: 1.5em;          /* spazio tra righe e colonne */
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  margin-bottom: 30px;
}

.gallery-item {
  margin: 0;           /* margine gestito dal gap */
}

.gallery img {
  width: 100%;         /* occupa tutta la colonna */
  height: auto;
  display: block;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out; /* hover opzionale */
}

/* Hover opzionale */
.gallery img:hover,
.gallery img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Read More-Read Less without js
--------------------------------*/

.read-toggle-container {
  width: 100%;
  position: relative;
  margin-bottom: 1rem;
	margin-top: 1rem;
}

/* Nasconde il checkbox */
.read-toggle input[type="checkbox"] {
  display: none;
}

/* Stile per il link Read More / Less */
.read-toggle-label,
.read-toggle-label-bottom {
  background-color: #7B1E26;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  border: 1px solid #7B1E26;
}

.read-toggle-label:hover,
.read-toggle-label-bottom:hover {
  background-color: #fff;
  color: #7B1E26;
}

/* Contenuto nascosto di default */
.read-more-content {
  display: none;
  margin-top: 10px;
}

/* Read More-Read Less Mostra contenuto quando checkbox è spuntato */
.read-toggle input[type="checkbox"]:checked ~ .read-more-content {
  display: block;
}

/* Mostra solo Read More se non spuntato */
.read-toggle input[type="checkbox"]:checked ~ .read-toggle-label {
  display: none;
}

.read-toggle-label::after,
.read-toggle-label-bottom::after {
  content: none !important;
}

/* Mostra Read Less solo se spuntato */
.read-toggle input[type="checkbox"]:checked ~ .read-more-content .read-toggle-label-bottom {
  display: inline-block;
}
.read-more-content .read-toggle-label-bottom {
  display: none;
}

:root {
  --color-primary: #7B1E26;   /* Bordeaux */
  --color-secondary: #1A2634; /* Blu notte */
  --color-text: #1A2634;
  --color-bg-light: #f5f5f5;
  --color-bg-white: #fff;
}

/* CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 35px auto;
}

/* HERO */
.hero-section {
  background: var(--color-secondary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.hero-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn-primary, .btn-secondary {
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.wp-block-button__link, .btn-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
}
.wp-block-button__link:hover, .wp-block-button__link:focus, .btn-primary:hover {
  background: #fff !important;
	color: var(--color-primary) !important;
}
.btn-secondary {
  background: #fff;
  color: var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-bg-light);
}

/* SERVIZI */
.services-section {
  padding: 4rem 0;
  background: var(--color-bg-white);
  text-align: center;
}
.services-section h2 {
  margin-bottom: 2rem;
}
.container .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--color-primary);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.card .icon {
  font-size: 2rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.8rem;
}
.card h3 {
  margin-bottom: 0.5rem;
	color: var(--color-secondary);
}

/* PERCHÉ SCEGLIERCI */
.why-section {
  background: var(--color-bg-light);
  padding: 4rem 0;
  text-align: center;
}
.why-section h2 {
  margin-bottom: 2rem;
}
.card-alt {
  border-top: 3px solid var(--color-primary-dark);
}
.card-alt small {
  display: block;
  margin-top: 0.5rem;
  color: #777;
  font-size: 0.85rem;
}
.section-title, .category-title {
	text-align: center;
}

.zone-intervento {
  padding: 0 20px;
  text-align: center;
}

.zone-intervento h2 {
  color: #7B1E26;
  font-size: 2rem;
  margin-bottom: 20px;
}

.zone-intervento p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #333;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: left;
}

.zona {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-top: 3px solid var(--color-primary);
}

.zona:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
	border-top: 3px solid var(--color-primary);
}

.zona h3 {
  color: #1A2634;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.zona p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}



/* Forms
--------------------------------------------- */

input,
select,
textarea {
	background-color: #fff;
	border: none;
	color: #000;
	font-size: 15px;
	font-weight: 400;
	padding: 15px;
	width: 100%;
}

input:focus,
textarea:focus {
	border: none;
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

:-ms-input-placeholder {
	color: #555;
	opacity: 1;
}

::placeholder {
	color: #555;
	opacity: 1;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	background-color: #051449;
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	padding: 15px 30px;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	width: auto;
}

button:focus,
button:hover,
input[type="button"]:focus,
input[type="button"]:hover,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
.button:focus,
.button:hover {
	background-color: #fff;
	border-width: 0;
	color: #051449;
}

.entry-content .button:focus,
.entry-content .button:hover {
	color: #fff;
}

.button {
	display: inline-block;
}

.site-container button:disabled,
.site-container button:disabled:hover,
.site-container input:disabled,
.site-container input:disabled:hover,
.site-container input[type="button"]:disabled,
.site-container input[type="button"]:disabled:hover,
.site-container input[type="reset"]:disabled,
.site-container input[type="reset"]:disabled:hover,
.site-container input[type="submit"]:disabled,
.site-container input[type="submit"]:disabled:hover {
	background-color: #eee;
	border-width: 0;
	color: #777;
	cursor: not-allowed;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button {
	display: none;
}

/* Tables
--------------------------------------------- */

table {
	border-collapse: collapse;
	border-spacing: 0;
	margin-bottom: 40px;
	width: 100%;
	word-break: break-all;
}

tbody {
	border-bottom: 1px solid #eee;
}

td,
th {
	line-height: 2;
	text-align: left;
	vertical-align: top;
}

td {
	padding: 0.5em;
}

tr {
	border-top: 1px solid #eee;
}

th {
	font-weight: 600;
	padding: 0.5em;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* BASE */
.cooling-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background-color: #fff;
  word-wrap: break-word;        /* per sicurezza */
  table-layout: fixed;          /* evita celle troppo larghe */
}

/* HEADER */
.cooling-table thead {
  background-color: #f4f4f4;
  border-bottom: 2px solid #ccc;
}

.cooling-table th {
  text-align: left;
  padding: 0.7em;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* CELLE */
.cooling-table td {
  padding: 0.7em;
  border-bottom: 1px solid #009666;
  vertical-align: top;
  word-break: break-word;       /* forza il testo ad andare a capo */
}

/* RIGHE ALTERNE */
.cooling-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Tabella con sfondo blu e celle chiare */
.cooling-table.blue-theme {
  background-color: #051449; /* blu scuro */
  color: #fff; /* testo bianco per header */
}

/* Header */
.cooling-table.blue-theme thead {
  background-color: #051449; /* blu scuro */
  color: #ffffff;
}

.cooling-table.blue-theme th {
  color: #ffffff;
}

/* Celle */
.cooling-table.blue-theme td {
  background-color: #f9f9f9; /* chiaro */
  color: #000000; /* testo scuro per leggibilità */
  border-bottom: 1px solid #051499;
}

/* Righe alternate */
.cooling-table.blue-theme tbody tr:nth-child(even) td {
  background-color: #ffffff; /* alternate leggermente più chiaro */
}

/* --- STACKED PER SCHERMI PICCOLI --- */
@media (max-width: 767px) {
  .cooling-table,
  .cooling-table thead,
  .cooling-table tbody,
  .cooling-table th,
  .cooling-table td,
  .cooling-table tr {
    display: block;
    width: 100%;
  }

  .cooling-table thead {
    display: none;
  }

  .cooling-table tr {
    margin-bottom: 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.8em;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .cooling-table td {
    border: none;
    display: flex;
    flex-direction: column;      /* <-- verticale, evita overflow */
    align-items: flex-start;
    padding: 0.4em 0;
  }

  .cooling-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25em;
    white-space: normal;         /* etichetta va a capo se lunga */
  }

  .cooling-table td:last-child {
    border-bottom: none;
  }
}

/* --- DESKTOP E TABLET --- */
@media (min-width: 481px) {
  .cooling-table {
    font-size: 16px;
    table-layout: auto;
  }
}

@media (min-width: 768px) {
  .table-responsive {
    overflow-y: hidden; /* elimina la barra verticale inutile */
  }

  .cooling-table tr:last-child {
    border-bottom: none; /* evita 1px fantasma in alcuni browser */
  }
}

/* Screen Reader Text
--------------------------------------------- */

.screen-reader-shortcut,
.screen-reader-text,
.screen-reader-text span {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-shortcut:focus,
.widget_search input[type="submit"]:focus {
	background: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #000;
	display: block;
	font-size: 1em;
	font-weight: 700;
	height: auto;
	padding: 15px 23px 14px;
	text-decoration: none;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

.more-link {
	display: inline-block;
	position: relative;
	margin-bottom: 30px;
}


/* Structure and Layout
---------------------------------------------------------------------------- */

/* Site Container
--------------------------------------------- */

.site-container {
	overflow-wrap: break-word;
}

/* Site Inner
--------------------------------------------- */

.site-inner {
	margin: 0 auto;
	padding: 0;
}

.content {
	width: 100%;
}

.page .entry-content > div {
        padding: 30px 7% !important; 
    }

/* Content + Sidebar Wrapper
--------------------------------------------- */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: una colonna */
  gap: 1.5rem;
}

/* Sidebar */
.sidebar {
  width: 100%; /* Mobile: sotto al content */
}



/* Common Classes
---------------------------------------------------------------------------- */

/* Genesis
--------------------------------------------- */

.after-entry,
.archive-description,
.author-box {
	margin-bottom: 40px;
}

.after-entry {
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	padding: 20px 30px;
}

.after-entry .widget:last-of-type {
	margin-bottom: 0;
}

.breadcrumb {
	border-top: 1px solid #eee;
    font-size: 13px;
    padding: 15px 7%;
}

.genesis-title-hidden .breadcrumb {
	margin-top: 40px;
}

.archive-description p:last-child,
.author-box p:last-child {
	margin-bottom: 0;
}

/* SEARCH FORM MODERNO
   ---------------------- */

/* Contenitore generale */
.search-form {
  display: flex;
  flex-wrap: wrap;         /* il form si adatta su più righe se necessario */
  gap: 0.5rem;             /* spazio tra input e pulsante */
  justify-content: flex-start; /* puoi cambiare in center se vuoi centrare */
  width: 100%;             /* occupa tutta la larghezza del contenitore */
  max-width: 500px;        /* limite massimo */
  margin-bottom: 2rem;     /* spazio sotto il form */
}

/* Campo input */
.search-form input[type="search"] {
  flex: 1 1 auto;          /* il campo occupa tutto lo spazio disponibile */
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Pulsante submit */
.search-form button,
.search-form input[type="submit"] {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #0073e5;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
  background-color: #005bb5;
}

/* Pulsante nascosto per widget ma accessibile (accessibilità) */
.widget_search input[type="submit"] {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Titles
--------------------------------------------- */

.archive-description .entry-title,
.archive-title,
.author-box-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

.entry-title {
	font-size: 30px;
	margin-bottom: 10px;
}

.entry-title a,
.sidebar .widget-title a {
	color: #000;
	text-decoration: none;
}

.entry-title a:focus,
.entry-title a:hover {
	color: #0073e5;
}

.widget-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
}

.genesis-title-hidden .site-inner {
	padding-top: 0;
}

/* WordPress
--------------------------------------------- */

a.aligncenter img {
	display: block;
	margin: 0 auto;
}

a.alignnone {
	display: inline-block;
}

.alignleft {
  display: inline-block;
  margin-right: 1rem; /* spazio tra immagine e testo */
  vertical-align: top;
}

.alignright {
  display: inline-block;
  margin-left: 1rem;
  vertical-align: top;
}

a.alignleft,
a.alignnone,
a.alignright {
	max-width: 100%;
}

img.centered,
.aligncenter,
.singular-image {
	display: block;
	margin: 0 auto 30px;
}

img.alignnone,
.alignnone {
	margin-bottom: 15px;
}

a.alignleft,
img.alignleft,
.wp-caption.alignleft {
	margin: 0 20px 20px 0;
}

a.alignright,
img.alignright,
.wp-caption.alignright {
	margin: 0 0 20px 20px;
}

figcaption,
.gallery-caption,
.wp-caption-text {
	font-size: 14px;
	font-weight: 600;
	margin-top: 0.5em;
	margin-bottom: 1em;
	padding-left: 10px;
	padding-right: 10px;
	text-align: center;
}

.entry-content p.wp-caption-text {
	margin-bottom: 0;
}

.entry-content .wp-audio-shortcode,
.entry-content .wp-playlist,
.entry-content .wp-video {
	margin: 0 0 30px;
}

/* Widgets
---------------------------------------------------------------------------- */

.widget {
	margin-bottom: 40px;
}

.widget p:last-child,
.widget ul > li:last-of-type {
	margin-bottom: 0;
}

.widget ul > li {
	margin-bottom: 10px;
}

.widget ul > li:last-of-type {
	padding-bottom: 0;
}

.widget ol > li {
	list-style-position: inside;
	list-style-type: decimal;
	padding-left: 20px;
	text-indent: -20px;
}

.widget li li {
	border: 0;
	margin: 0 0 0 30px;
	padding: 0;
}

.widget_calendar table {
	width: 100%;
}

.widget_calendar td,
.widget_calendar th {
	text-align: center;
}

/* Featured Content
--------------------------------------------- */

.featured-content .entry {
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.featured-content .entry:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
}

.featured-content .entry-title {
	font-size: 16px;
	margin-bottom: 5px;
	margin-top: 10px;
}

/* Simple FAQ section
--------------------------------------------- */

.faq-section {
  max-width: 800px;
  width: 100%;
  margin: 2rem auto;
  font-weight: 600;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #051449;
}

.faq-section details {
  margin-bottom: 1rem;
  border: 1px solid #051449;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.faq-section summary {
  background-color: #7B1E26;
  color: #fff;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  list-style: none; /* rimuove freccetta default */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between; /* testo a sinistra, simbolo a destra */
  align-items: center;
}

.faq-section summary::-webkit-details-marker {
  display: none; /* rimuove marker chrome/safari */
}

.faq-section details[open] summary {
  border-bottom: 1px solid #051449;
}

.faq-answer {
  background: #fff;
  color: #051449;
  padding: 1rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.faq-section summary::after {
  content: "+";
  float: right;
  transition: transform 0.2s;
}

.faq-section[open] summary::after {
  content: "–";
}

.nf-before-form-content {
	height: 0;
}

.nf-field-element textarea {
    height: 100px !important;
}

.nf-form-content {
    margin: 20px auto !important;
}


/* WP Forms
--------------------------------------------- */

.entry-content .wpforms-container {
	margin-bottom: 40px;
}

.entry-content .wpforms-form .wpforms-field {
	clear: both;
	margin: 20px 0;
	overflow: hidden;
}

.site-container .wpforms-container .wpforms-form .wpforms-field input {
	border-radius: 0;
	height: auto;
	padding: 15px;
}

.site-container .entry-content .wpforms-form .wpforms-field-label,
.site-container .entry-content .wpforms-form .wpforms-field-sublabel {
	display: none;
}

.entry-content .wpforms-form .wpforms-field-hp {
	display: none !important;
	left: -9000px !important;
	position: absolute !important;
}

.site-container .entry-content .wpforms-form textarea {
	padding: 15px;
}

.site-container .entry-content .wpforms-form textarea.wpforms-field-small {
	height: 120px;
}

.site-container .entry-content .wpforms-form textarea.wpforms-field-medium {
	height: 200px;
}

.site-container .entry-content .wpforms-form textarea.wpforms-field-large {
	height: 300px;
}


/* Skip Links
---------------------------------------------------------------------------- */

.genesis-skip-link {
	margin: 0;
}

.genesis-skip-link .skip-link-hidden {
	display: none;
	visibility: hidden;
}

.genesis-skip-link li {
	height: 0;
	list-style: none;
	width: 0;
}

/* Display outline on focus */
:focus {
	color: #000;
	outline: #ccc solid 1px;
}


/* Site Header
---------------------------------------------------------------------------- */

.site-header {
	background-color: #fff;
	padding: 0 20px;
}

.site-header .wrap {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

/* Title Area
--------------------------------------------- */

.title-area {
	display: block;
	text-align: left;
	padding-bottom: 25px;
	padding-top: 25px;
}

.wp-custom-logo .title-area {
	max-width: 350px;
	padding-bottom: 5px;
	padding-top: 5px;
	width: 100%;
}

.wp-custom-logo .custom-logo-link {
	display: block;
}

.wp-custom-logo .title-area img {
	width: auto;
}

.site-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	margin-bottom: 0;
}

.site-title a,
.site-title a:focus,
.site-title a:hover {
	color: #009863;
	text-decoration: none;
}

.site-description,
.wp-custom-logo .site-title {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.site-title:before {
    content: '';
    display: inline-block;
    width: 1em;              /* larghezza = font-size del titolo */
    height: 1em;             /* altezza = font-size del titolo */
    background-image: url('/wp-content/themes/genesis-child/images/Logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.25em;    /* spazio proporzionale al font */
    vertical-align: middle;
}




/* Site Navigation
---------------------------------------------------------------------------- */

.genesis-nav-menu {
	line-height: 1;
	width: 100%;
}

.genesis-nav-menu .menu-item {
	display: block;
	position: relative;
}

.genesis-nav-menu a {
	color: #000;
	display: block;
	font-size: 15px;
	font-weight: 400;
	outline-offset: -1px;
	padding-bottom: 12px;
	padding-top: 12px;
	text-decoration: none;
}

.genesis-nav-menu a:focus,
.genesis-nav-menu a:hover,
.genesis-nav-menu .current-menu-item > a,
.genesis-nav-menu .sub-menu .current-menu-item > a:focus,
.genesis-nav-menu .sub-menu .current-menu-item > a:hover {
	color: #0073e5;
	text-decoration: none;
}

.genesis-nav-menu .sub-menu,
.genesis-nav-menu .sub-menu a {
	width: 100%;
}

.genesis-nav-menu .sub-menu {
	display: none;
	left: -9999px;
	margin: 0;
	opacity: 1;
	padding-left: 15px;
	position: static;
	z-index: 99;
}

.genesis-nav-menu .sub-menu a {
	background-color: #fff;
	font-size: 14px;
	position: relative;
	overflow-wrap: break-word;
}

.genesis-nav-menu .menu-item:focus,
.genesis-nav-menu .menu-item:hover {
	position: relative;
}

.genesis-nav-menu .menu-item:hover > .sub-menu {
	display: block;
	left: auto;
	opacity: 1;
}

/* Responsive Menu
--------------------------------------------- */

.menu .menu-item:focus {
	position: static;
}

.menu .menu-item > a:focus + ul.sub-menu,
.menu .menu-item.sfHover > ul.sub-menu {
	left: auto;
	opacity: 1;
}

.js .nav-primary {
	display: none;
	position: relative;
}

.genesis-responsive-menu .genesis-nav-menu .menu-item:hover > .sub-menu {
	display: none;
}

.menu-toggle,
.sub-menu-toggle {
	background-color: transparent;
	border-width: 0;
	color: #000;
	display: block;
	margin: 0 auto;
	overflow: hidden;
	text-align: center;
	visibility: visible;
}

.menu-toggle:focus,
.menu-toggle:hover,
.sub-menu-toggle:focus,
.sub-menu-toggle:hover {
	background-color: transparent;
	border-width: 0;
	color: #0073e5;
}

.menu-toggle {
	display: inline-block;
	line-height: 20px;
	margin-bottom: 10px;
	margin-top: 10px;
	padding: 15px 0;
	position: relative;
	z-index: 1000;
}

.menu-toggle.activated::before {
	content: "\f335";
}

.site-header .dashicons-before::before {
	transition: none;
}

.site-header .menu-toggle::before {
	float: left;
	margin-right: 5px;
	position: relative;
	text-rendering: auto;
	top: 1px;
}

.sub-menu-toggle {
	float: right;
	padding: 9px 10px;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 100;
}

.sub-menu .sub-menu-toggle {
	padding: 12px 10px;
}

.sub-menu-toggle::before {
	display: inline-block;
	text-rendering: auto;
	transform: rotate(0);
	transition: transform 0.25s ease-in-out;
}

.sub-menu-toggle.activated::before {
	transform: rotate(180deg);
}

/* Header Menu
--------------------------------------------- */

.nav-primary {
	clear: left;
	padding-bottom: 15px;
	padding-top: 15px;
	width: 100%;
}

/* Footer Menu
--------------------------------------------- */

.nav-secondary {
	margin-top: 10px;
}

.nav-secondary .genesis-nav-menu {
	line-height: 1.5;
}

.nav-secondary .menu-item {
	display: inline-block;
}

.nav-secondary a {
	margin-left: 10px;
	margin-right: 10px;
	padding: 0;
}


/* Content Area
---------------------------------------------------------------------------- */

/* Entry Content
--------------------------------------------- */

.entry {
	margin-bottom: 40px;
}

.entry-content ol,
.entry-content ul {
	margin-bottom: 30px;
	padding-left: 20px;
}

.entry-content ol > li {
	list-style-type: decimal;
	margin-bottom: 10px;
}

.entry-content ul > li {
	list-style-type: disc;
	margin-bottom: 10px;
}

.entry-content ol ul > li,
.entry-content ul ul > li {
	list-style-type: circle;
}

.entry-content ol ol,
.entry-content ul ul {
	margin-bottom: 0;
}

.service-info {
	margin: 20px 0;
}

.service-info ul {
    padding: 10px;
    margin: 10px;
}

.entry-content code {
	background-color: #f5f5f5;
}

.content .sticky {
	background-color: #f5f5f5;
	padding: 30px;
}

/* Entry Meta
--------------------------------------------- */

p.entry-meta {
	font-size: 16px;
	margin-bottom: 0;
}

.entry-header .entry-meta {
	margin-bottom: 20px;
}

.entry-footer .entry-meta {
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.entry-categories,
.entry-tags {
	display: block;
}

.entry-comments-link::before {
	content: "\2014";
	margin: 0 6px 0 2px;
}

/* Pagination
--------------------------------------------- */

.pagination {
	clear: both;
	margin: 60px 0;
}

.adjacent-entry-pagination {
	margin-bottom: 0;
}

.archive-pagination li {
	display: inline;
}

.archive-pagination li a {
	background-color: #f5f5f5;
	color: #000;
	cursor: pointer;
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
	padding: 8px 12px;
	text-decoration: none;
}

.archive-pagination li a:focus,
.archive-pagination li a:hover,
.archive-pagination li.active a {
	background-color: #000;
	color: #fff;
}

/* Entry Comments
--------------------------------------------- */

.comment-form-cookies-consent label {
	display: inline;
	padding-left: 10px;
}

/* Sidebar
---------------------------------------------------------------------------- */

.sidebar {
	font-size: 16px;
	line-height: 1.5;
}

.sidebar .widget {
	margin-bottom: 40px;
}

.sidebar p {
	margin-bottom: 20px;
}

/* Footer Widgets
---------------------------------------------------------------------------- */

.footer-widgets {
	border-top: 1px solid #eee;
	background-color: #fff;
	padding: 30px 0;
	display: flex;
}

.footer-widgets .wrap {
	margin-left: auto;
	margin-right: auto;
}

.footer-widget-area {
	margin-bottom: 40px;
	padding-left: 30px;
	padding-right: 30px;
}

.footer-widget-area:last-child,
.footer-widgets .widget:last-child {
	margin-bottom: 0;
}


/* Site Footer
---------------------------------------------------------------------------- */

.site-footer {
	background-color: #7B1E26;
	color: #fff;
	border-top: 1px solid #eee;
	font-size: 15px;
	line-height: 1.5;
	padding: 30px;
	text-align: center;
}

.site-footer p {
	margin-bottom: 0;
}

/* Column Classes(all breakpoints)
	--------------------------------------------- */

	/*  MOBILE-FIRST FLEX & GRID SYSTEM - GENESIS CHILD THEME
   ---------------------------------------------------------- */

/* SEZIONE 1: GUTENBERG BLOCK COLUMNS
   ----------------------------------- */

/* Base mobile: 1 colonna */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
  flex-direction: column;
}

.wp-block-column {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.grid-2, .grid-3, .grid-4 {
	display: grid;
	grid-template-columns: 1fr !important;
	grid-template-rows: auto;
	gap: 2em;
}

.grid-toggle-container {
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 0 !important;
}

/* Testo su due colonne che si bilancia da solo*/
.multi-column {
    column-count: 1;
}

.multi-column img {
  max-width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
}

/* Mobile first: max 2 */
.my-grid .card-border-green:nth-child(n+3) { display: none; }

/* Tablet: max 4 */
@media (min-width: 768px) {
  .my-grid .card-border-green:nth-child(n+3) { 
    display: flex !important;
    flex-direction: column;
  }
  .my-grid .card-border-green:nth-child(n+5) { display: none !important; }

  .service-info ul {
    list-style: none;
    display: inline;
	}

	.service-info li {
    display: inline;
	line-height: 1.5;
	
    }
        
	.service-info li:not(:last-child)::after {
    content: " • ";
	margin: 0 5px;
    font-weight: bold;
	}

	.multi-column {
  column-count: 2 !important;
  column-fill: balance;
  column-gap: 5%;
	}

	.multi-column h2,
	.multi-column h3 {
  break-after: avoid-column !important; /* Evita che gli header rimangano da soli alla fine di una colonna */
	}
	

	.site-header .wrap {
	    width: 90%;
        margin: auto;
	}
	
	.hidden {
    display: none !important;
    }
}

/* Desktop: max 6 */
@media (min-width: 1024px) {
  .my-grid .card-border-green:nth-child(n+5) { 
    display: flex !important;
    flex-direction: column;
  }
  .my-grid .card-border-green:nth-child(n+7) { display: none !important; }
}

/* Nascondo il checkbox */
.grid-toggle {
  display: none;
}

/* Label styling */
.grid-toggle-label {
    background-color: #7B1E26;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s 
ease;
    border: 1px solid #7B1E26;
	margin: 30px !important;
}

.read-less-label {
  display: none;
}

/* Quando checkbox è spuntato → mostra tutto */
.grid-toggle:checked ~ .my-grid .card-border-green:nth-child(n) {
  display: flex !important;
  flex-direction: column;
}

/* Gestione Read More / Less */
.grid-toggle:checked ~ .read-more-label {
  display: none;
}
.grid-toggle:checked ~ .read-less-label {
  display: inline-block;
}

.my-grid {
	container-type: normal !important;
	order: 2 !important;
}

/* I pulsanti dopo */
.read-more-label,
.read-less-label {
  order: 3 !important;
}

.card-border-green {
	padding: 25px;
	border: 1px solid #106527;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
}

/* Intermedio: da 481px a 767px → 2 colonne */
@media (min-width: 481px) and (max-width: 767px) {
  .wp-block-columns.has-2-columns > .wp-block-column {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* Tablet: 768px+ → 2 colonne */
@media (min-width: 768px) {
  .wp-block-columns {
	flex-direction: row !important;
    }
  
  .wp-block-columns.has-2-columns > .wp-block-column {
    flex: 1 1 calc(50% - 1.5rem);
  }

  .grid-2, .grid-3, .grid-4 {
	grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Desktop medio: 1024px+ → 3 colonne */
@media (min-width: 1024px) {
  .wp-block-columns.has-3-columns > .wp-block-column {
    flex: 1 1 calc(33.333% - 1.5rem);
  }

  .grid-3, .grid-4 {
	grid-template-columns: repeat(3, 1fr) !important;
	}
}

/* Desktop largo: 1280px+ → 4 colonne */
@media (min-width: 1280px) {
  .wp-block-columns.has-4-columns > .wp-block-column {
    flex: 1 1 calc(25% - 1.5rem);
  }

  .grid-4 {
	grid-template-columns: repeat(4, 1fr);
	} 
}

/* === Grid Variante Gutenberg (opzionale) === */
.is-layout-grid
 {
  display: grid;
  grid-template-columns: 1fr; /* base mobile: 1 colonna */
  gap: 1.5rem;
}

@media (min-width: 481px) {
  .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/*  SEZIONE 2: GENESIS FRAMEWORK COLUMNS
   -------------------------------------- */

/* Base mobile: 1 colonna */
.content .column-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
  flex-direction: column;
}

.content .one-half,
.content .one-third,
.content .two-thirds,
.content .one-fourth,
.content .three-fourths {
  flex: 1 1 100%;
}

/* Intermedio: 2 colonne da 481px a 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .content .one-half {
    flex: 1 1 calc(50% - 1.5rem);
  }
  .content .one-third {
    flex: 1 1 calc(50% - 1.5rem); /* due colonne invece di tre per evitare larghezze eccessive */
  }
  .content .two-thirds {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .content .one-half {
    flex: 1 1 calc(50% - 1.5rem);
  }
  .content .one-third {
    flex: 1 1 calc(33.333% - 1.5rem);
  }
  .content .two-thirds {
    flex: 1 1 calc(66.666% - 1.5rem);
  }
}

/* Desktop medio: 1024px+ */
@media (min-width: 1024px) {
  .content .one-fourth {
    flex: 1 1 calc(25% - 1.5rem);
  }
  .content .three-fourths {
    flex: 1 1 calc(75% - 1.5rem);
  }
}

/* Desktop largo: 1280px+ */
@media (min-width: 1280px) {
  .content .one-fourth {
    flex: 1 1 calc(25% - 1.5rem);
  }
  .content .three-fourths {
    flex: 1 1 calc(75% - 1.5rem);
  }
}

/* === Grid Variante Genesis (opzionale) === */
.content .column-row.grid-auto {
  display: grid;
  grid-template-columns: 1fr; /* base mobile: 1 colonna */
  gap: 1.5rem;
}

@media (min-width: 481px) {
  .content .column-row.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* SEZIONE 3: UTILITY CLASSES
   --------------------------- */

/* Allineamento verticale interno */
.align-top { align-items: start; }
.align-center { align-items: center; }
.align-bottom { align-items: end; }

/* Allineamento contenuto nei figli */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }



/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (min-width: 480px) {


}

@media only screen and (min-width: 960px) {

	/* Site Header
	--------------------------------------------- */

	.site-header {
		position: sticky;
		top: 0;
		z-index: 9999;
	}

	.admin-bar .site-header {
		top: 32px;
	}

	/* Genesis Menu
	--------------------------------------------- */

	.genesis-nav-menu .menu-item {
		display: inline-block;
	}

	.genesis-nav-menu .menu-item:focus,
	.genesis-nav-menu .menu-item:hover {
		position: relative;
	}

	.genesis-nav-menu > .menu-bold > a {
		font-weight: 700;
	}

	.genesis-nav-menu > .menu-highlight > a {
		background-color: #000;
		border-radius: 3px;
		color: #fff;
		font-weight: 600;
		margin-left: 15px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.genesis-nav-menu > .menu-highlight > a:focus,
	.genesis-nav-menu > .menu-highlight > a:hover {
		background-color: #0073e5;
	}

	.genesis-nav-menu .sub-menu,
	.genesis-nav-menu .sub-menu a {
		width: 180px;
	}

	.genesis-nav-menu .sub-menu {
		border-top: 1px solid #eee;
		opacity: 0;
		padding-left: 0;
		position: absolute;
		transition: opacity 0.4s ease-in-out;
	}

	.genesis-nav-menu .sub-menu a {
		border: 1px solid #eee;
		border-top: 0;
		padding-bottom: 15px;
		padding-top: 15px;
	}

	.genesis-nav-menu .sub-menu .sub-menu {
		margin: -46px 0 0 179px;
	}

	/* Responsive Menu
	--------------------------------------------- */

	.js .nav-primary {
		display: block;
		padding-top: 15px;
	}

	.menu-toggle,
	.sub-menu-toggle {
		display: none;
		visibility: hidden;
	}

	/* Header Menu
	--------------------------------------------- */

	.nav-primary {
		clear: none;
		float: right;
		width: auto;
	}

	.nav-primary .genesis-nav-menu a {
		padding-left: 15px;
		padding-right: 15px;
	}

	/* Site-Inner
	--------------------------------------------- */

	.site-inner {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.page .entry-content > div {
       	margin: 0 auto;      /* centra il contenuto */
    	padding: 50px 10% !important;   /* margini interni verticali e orizzontali */
    	box-sizing: border-box;
	}

	.content-sidebar-wrap {
    width: 100%;
  	}
  	
  	.hidden {
    height: 0px !important;
}

	

	/* Author Box
	--------------------------------------------- */

	.author-box {
		background-color: #f5f5f5;
		padding: 30px;
	}

	/* After Entry
	--------------------------------------------- */

	.after-entry {
		padding: 40px 60px;
	}

	.after-entry .enews {
		padding-left: 30px;
		padding-right: 30px;
	}

	/* Entry Misc.
	--------------------------------------------- */

	.after-entry,
	.archive-description,
	.author-box,
	.entry {
		margin-bottom: 60px;
	}

	/* Footer Widgets
	--------------------------------------------- */

	.footer-widgets .wrap {
		width: 90%;
		margin: auto;
	}

	.footer-widget-area {
		margin-bottom: 0;
		width: calc(100% / 3);
	}

}