/*
Theme Name: DeltaLink
Theme URI: https://www.deltalinksrl.com
Author: Delta Link Srl
Description: Tema a blocchi per il sito DeltaLink: telefonia, centralini VoIP, call center e MarIA.
Version: 1.4.4
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: deltalink
*/

/* Header */
.dl-header{background:#fff;border-bottom:1px solid #E3E8EF;padding-top:14px;padding-bottom:14px;position:sticky;top:0;z-index:50}
.dl-header .wp-block-site-title a{color:var(--wp--preset--color--blu-scuro);text-decoration:none;font-weight:800;letter-spacing:.06em}
.dl-header .wp-block-navigation a{color:var(--wp--preset--color--testo);text-decoration:none;font-weight:600}
.dl-header .wp-block-navigation a:hover{color:var(--wp--preset--color--blu)}
.dl-header .wp-block-navigation__submenu-container{border:1px solid #E3E8EF !important;border-radius:8px;padding:6px 0}
.dl-tel .wp-block-button__link{padding:.55em 1.1em;font-size:.95rem}

/* Sezioni */
.dl-section{padding-top:64px;padding-bottom:64px}
.dl-alt{background:var(--wp--preset--color--grigio-chiaro)}
.dl-section h2.wp-block-heading::after,.dl-page h2.wp-block-heading::after{content:"";display:block;width:48px;height:3px;background:var(--wp--preset--color--arancione);margin-top:12px;border-radius:2px}
.dl-center{text-align:center}
.dl-center h2.wp-block-heading::after{margin-left:auto;margin-right:auto}
.dl-lead{font-size:1.2rem;opacity:.95;max-width:720px}

/* Hero */
.dl-hero{background:linear-gradient(135deg,#00264A 0%,#003765 100%);color:#fff;padding-top:88px;padding-bottom:88px}
.dl-hero h1,.dl-hero h2,.dl-hero p{color:#fff}
.dl-hero h1{font-size:clamp(2rem,4.5vw,3.2rem);max-width:860px}
.dl-hero .wp-block-button__link{background:#fff;color:var(--wp--preset--color--blu-scuro)}
.dl-hero .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border:2px solid #fff}
.dl-hero .wp-block-button__link:hover{opacity:.9}

/* Schede */
.dl-card{background:#fff;border-radius:10px;padding:28px !important;border-top:3px solid var(--wp--preset--color--arancione);box-shadow:0 2px 14px rgba(0,38,74,.08)}
.dl-card h3{margin-top:0;font-size:1.25rem}
.dl-card p:last-child{margin-bottom:0}
.dl-num{font-size:2rem;font-weight:800;color:var(--wp--preset--color--arancione);margin:0 0 6px}
.dl-tag{display:inline-block;color:var(--wp--preset--color--arancione);font-weight:800;letter-spacing:.12em;font-size:.85rem;margin:0}
.dl-more a{font-weight:700;text-decoration:none}

/* MarIA */
.dl-ia{color:var(--wp--preset--color--azzurro)}
.dl-maria{background:#00264A;color:#fff;padding-top:72px;padding-bottom:72px}
.dl-maria h1,.dl-maria h2,.dl-maria p,.dl-maria li{color:#fff}
.dl-maria .wp-block-button__link{background:var(--wp--preset--color--azzurro);color:#00264A}

/* Moduli */
.dl-form{border:2px dashed #9FB3C8;border-radius:10px;padding:24px !important;background:#fff}
.dl-map iframe{width:100%;height:340px;border:0;border-radius:10px}

/* Footer */
.dl-footer{background:#00264A;color:#C9D6E6;padding-top:48px;padding-bottom:24px;font-size:.95rem}
.dl-footer h3{color:#fff;font-size:1rem;letter-spacing:.06em;text-transform:uppercase}
.dl-footer a{color:#fff}
.dl-footer .dl-copy{border-top:1px solid rgba(255,255,255,.15);padding-top:18px;margin-top:24px;font-size:.85rem}

@media (max-width:781px){
  .dl-section{padding-top:44px;padding-bottom:44px}
  .dl-hero{padding-top:56px;padding-bottom:56px}
  .dl-tel{display:none}
}
.wpcf7 form p{margin:0 0 16px}.wpcf7 label{display:block;font-weight:600;color:#00264A;font-size:.95rem}.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 select,.wpcf7 textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px 14px;border:1px solid #9FB3C8;border-radius:8px;background:#fff;font:inherit;color:#1a1a1a}.wpcf7 textarea{min-height:140px}.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:2px solid #4FC3F7;border-color:#003765}.wpcf7 .wpcf7-acceptance label,.wpcf7 .wpcf7-list-item label{display:flex;gap:10px;align-items:flex-start;font-weight:400}.wpcf7 .wpcf7-list-item{margin:0}.wpcf7 input[type=submit]{background:#003765;color:#fff;border:0;border-radius:8px;padding:14px 28px;font:inherit;font-weight:700;cursor:pointer}.wpcf7 input[type=submit]:hover{background:#00264A}.wpcf7-not-valid-tip{color:#b3261e;font-size:.85rem;margin-top:4px}.wpcf7 form .wpcf7-response-output{border-radius:8px;margin:16px 0 0;padding:12px 14px}

/* Menu mobile: voci allineate a sinistra e dentro lo schermo */
@media (max-width:781px){
.dl-header .wp-block-navigation__responsive-container.is-menu-open{padding:20px 24px;box-sizing:border-box;overflow-x:hidden}
.dl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:flex-start;width:100%;padding-top:48px}
.dl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start;justify-content:flex-start;gap:18px;width:100%}
.dl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{width:100%;align-items:flex-start;font-size:1.15rem}
.dl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{border:0 !important;padding:8px 0 0 16px !important;align-items:flex-start;width:100%;min-width:0;gap:12px}
}

/* ===== v1.3 Nuova veste home: telefonata MarIA, numeri, icone servizi ===== */
.dl-hero-call{position:relative;overflow:hidden;padding-top:72px;padding-bottom:136px;background:#001f3a}
.dl-hero-call::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-1px;height:80px;background:#fff;clip-path:ellipse(60% 100% at 50% 100%)}
.dl-hero-call > *{position:relative;z-index:1}
.dl-hero-cols{gap:56px}
.dl-hero-call h1{font-size:clamp(2.1rem,4.4vw,3.4rem);line-height:1.06;letter-spacing:-.02em}
.dl-hero-call .dl-lead{color:#c3d4e5}
@media (max-width:781px){.dl-hero-call{padding-top:48px;padding-bottom:112px}.dl-hero-cols{gap:36px}}

.dl-call{background:#022a4d;border:1px solid #0f416f;border-radius:22px;padding:22px 22px 18px;box-shadow:0 30px 60px -30px rgba(0,0,0,.6);color:#fff}
.dl-call-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;font-size:.9rem;color:#9fbad3}
.dl-call-head strong{color:#fff;font-weight:700;font-size:1rem}
.dl-call-status{display:inline-flex;align-items:center;gap:.5rem}
.dl-call-dot{width:9px;height:9px;border-radius:50%;background:#3ddc84;flex:none}
.dl-call.is-ringing .dl-call-dot{background:#ff4825;animation:dlRing 1s infinite}
@keyframes dlRing{0%{box-shadow:0 0 0 0 rgba(255,72,37,.7)}100%{box-shadow:0 0 0 10px rgba(255,72,37,0)}}
.dl-call-timer{font-variant-numeric:tabular-nums}
.dl-call-wave{display:block;width:100%;height:96px;margin:16px 0 10px}
.dl-call-lines{list-style:none;margin:0;padding:0;min-height:15.5rem;display:flex;flex-direction:column;gap:.7rem}
.dl-call-lines li{display:grid;grid-template-columns:4.6rem 1fr;gap:.6rem;font-size:.98rem;line-height:1.45;margin:0;opacity:0;transform:translateY(4px);transition:opacity .35s,transform .35s}
.dl-call-lines li.on{opacity:1;transform:none}
.dl-call-who{font-weight:700;font-size:.85rem;padding-top:.12rem}
.dl-call-who.maria{color:#ff4825}
.dl-call-who.cliente{color:#8fb8dc}
.dl-call-lines li.event{grid-template-columns:1fr;background:#06375f;border-radius:10px;padding:.55rem .8rem;font-size:.9rem;color:#d7e6f3}
.dl-call-lines li.event b{color:#3ddc84}
.dl-call-caret::after{content:"";display:inline-block;width:2px;height:1em;background:currentColor;margin-left:2px;vertical-align:-.15em;animation:dlBlink 1s steps(1) infinite}
@keyframes dlBlink{50%{opacity:0}}
.dl-hero .dl-call p.dl-call-foot,.dl-call p.dl-call-foot{margin:14px 0 0;font-size:.82rem;color:#7d9bb8}
@media (max-width:480px){.dl-call{padding:18px 16px 14px}.dl-call-lines li{grid-template-columns:3.9rem 1fr;font-size:.94rem}}

.dl-numbers{padding-top:40px;padding-bottom:56px;background:#fff}
.dl-numbers .wp-block-columns{gap:32px}
.dl-num{border-top:3px solid var(--wp--preset--color--arancione);padding-top:14px}
.dl-num p{margin:0}
.dl-num .dl-num-value{font-size:clamp(2.6rem,6vw,4rem);font-weight:800;line-height:1;color:var(--wp--preset--color--blu-scuro);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.dl-num .dl-num-label{color:#4a5f74;margin-top:6px;font-size:1.05rem}
@media (max-width:781px){.dl-numbers .wp-block-columns{flex-wrap:nowrap !important;gap:14px}.dl-numbers .wp-block-column{flex-basis:0 !important;flex-grow:1}.dl-num .dl-num-value{font-size:clamp(1.9rem,9vw,2.6rem)}.dl-num .dl-num-label{font-size:.9rem;line-height:1.3}}

.dl-services .dl-card::before{content:"";display:block;width:52px;height:52px;margin-bottom:14px;background-repeat:no-repeat;background-size:contain}
.dl-ico-voip::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Crect x='9' y='12' width='38' height='26' rx='4' stroke='%23003765' stroke-width='2.5'/%3E%3Cpath d='M20 46h16M28 38v8M17 25h6M33 25h6' stroke='%23003765' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='28' cy='25' r='5' fill='%23FF4825'/%3E%3C/svg%3E")}
.dl-ico-linee::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M8 28c5-9 9-9 14 0s9 9 14 0 9-9 12-4' stroke='%23003765' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='28' r='3.5' fill='%23FF4825'/%3E%3Ccircle cx='48' cy='24' r='3.5' fill='%23FF4825'/%3E%3C/svg%3E")}
.dl-ico-callcenter::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M14 30v-4a14 14 0 0 1 28 0v4' stroke='%23003765' stroke-width='2.5' stroke-linecap='round'/%3E%3Crect x='10' y='29' width='7' height='11' rx='3' stroke='%23003765' stroke-width='2.5'/%3E%3Crect x='39' y='29' width='7' height='11' rx='3' stroke='%23003765' stroke-width='2.5'/%3E%3Cpath d='M42 40c0 4-4 6-9 6' stroke='%23FF4825' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")}
.dl-ico-assistenza::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Ccircle cx='28' cy='28' r='17' stroke='%23003765' stroke-width='2.5'/%3E%3Cpath d='M28 18v10l7 5' stroke='%23003765' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='28' r='2.5' fill='%23FF4825'/%3E%3C/svg%3E")}

@media (prefers-reduced-motion: reduce){.dl-call.is-ringing .dl-call-dot,.dl-call-caret::after{animation:none}.dl-call-lines li{transition:none}}

/* Margini laterali delle fasce a tutta larghezza della home */
.wp-block-post-content > .alignfull{padding-left:clamp(20px,5vw,56px);padding-right:clamp(20px,5vw,56px)}
.wp-block-post-content > .dl-section > .wp-block-heading{max-width:var(--wp--style--global--wide-size) !important}
.dl-numbers{padding-top:8px}
.dl-num .dl-num-label{font-weight:400}

/* ===== v1.4 Nuova veste pagine interne ===== */
.wp-block-post-content > .dl-hero,.wp-block-post-content > .dl-maria{position:relative;overflow:hidden;background:#001f3a;padding-top:72px;padding-bottom:136px}
.wp-block-post-content > .dl-hero::after,.wp-block-post-content > .dl-maria::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-1px;height:80px;background:#fff;clip-path:ellipse(60% 100% at 50% 100%)}
.wp-block-post-content > .dl-hero > *,.wp-block-post-content > .dl-maria > *{position:relative;z-index:1}
.wp-block-post-content > .dl-hero h1,.wp-block-post-content > .dl-maria h1{line-height:1.06;letter-spacing:-.02em}
.wp-block-post-content > .dl-hero .dl-lead,.wp-block-post-content > .dl-maria .dl-lead{color:#c3d4e5}
@media (max-width:781px){.wp-block-post-content > .dl-hero,.wp-block-post-content > .dl-maria{padding-top:48px;padding-bottom:112px}}

.dl-hero-ico::before{content:"";position:absolute;z-index:0;top:calc(50% - 40px);right:max(48px,calc((100% - 1200px)/2));width:180px;height:180px;transform:translateY(-50%);background-repeat:no-repeat;background-size:contain;opacity:.95}
@media (max-width:1099px){.dl-hero-ico::before{display:none}}
.dl-hi-voip::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Crect x='9' y='12' width='38' height='26' rx='4' stroke='%238fb8dc' stroke-width='1.6'/%3E%3Cpath d='M20 46h16M28 38v8M17 25h6M33 25h6' stroke='%238fb8dc' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='28' cy='25' r='4.5' fill='%23FF4825'/%3E%3C/svg%3E")}
.dl-hi-linee::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M8 28c5-9 9-9 14 0s9 9 14 0 9-9 12-4' stroke='%238fb8dc' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='28' r='3' fill='%23FF4825'/%3E%3Ccircle cx='48' cy='24' r='3' fill='%23FF4825'/%3E%3C/svg%3E")}
.dl-hi-callcenter::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M14 30v-4a14 14 0 0 1 28 0v4' stroke='%238fb8dc' stroke-width='1.6' stroke-linecap='round'/%3E%3Crect x='10' y='29' width='7' height='11' rx='3' stroke='%238fb8dc' stroke-width='1.6'/%3E%3Crect x='39' y='29' width='7' height='11' rx='3' stroke='%238fb8dc' stroke-width='1.6'/%3E%3Cpath d='M42 40c0 4-4 6-9 6' stroke='%23FF4825' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.dl-hi-assistenza::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Ccircle cx='28' cy='28' r='17' stroke='%238fb8dc' stroke-width='1.6'/%3E%3Cpath d='M28 18v10l7 5' stroke='%238fb8dc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='28' r='2.5' fill='%23FF4825'/%3E%3C/svg%3E")}
.dl-ico-maria::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M10 28h4M18 22v12M24 16v24M30 20v16M36 24v8M42 27v2' stroke='%23003765' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='46' cy='14' r='4' fill='%23FF4825'/%3E%3C/svg%3E")}

.dl-maria .dl-maria-cols{gap:56px}
.dl-maria .dl-call-lines{min-height:19rem}
@media (max-width:781px){.dl-maria .dl-maria-cols{gap:36px}}
.wp-block-post-content > .dl-hero > h1.wp-block-heading{max-width:var(--wp--style--global--content-size)}
.wp-block-post-content > .dl-hero > .dl-lead{max-width:var(--wp--style--global--content-size)}
.wp-block-post-content > .dl-section.dl-page > .wp-block-heading{max-width:var(--wp--style--global--content-size) !important}
.dl-hero-call .dl-call-lines{min-height:19rem}
